Permalink
Browse files
fix webpack recognize jsx as modules
- Loading branch information...
Showing
with
8 additions
and
0 deletions.
-
+8
−0
webpack.config.js
|
@@ -34,6 +34,14 @@ module.exports = { |
|
|
Buffer: false
|
|
|
},
|
|
|
|
|
|
+ resolve: {
|
|
|
+ extensions: [
|
|
|
+ '',
|
|
|
+ '.js',
|
|
|
+ '.jsx'
|
|
|
+ ]
|
|
|
+ },
|
|
|
+
|
|
|
plugins: [
|
|
|
new webpack.optimize.OccurenceOrderPlugin(),
|
|
|
new webpack.DefinePlugin({
|
|
|
0 comments on commit
6565bae