Commit a11d6a39 authored by Dan Abramov's avatar Dan Abramov
Browse files

Support .json extension

Some libraries rely on it, and they work fine with browserify.
Let’s just do the right thing here by default.
parent 1740fa99
Showing with 2 additions and 2 deletions
+2 -2
......@@ -29,7 +29,7 @@ module.exports = {
publicPath: '/'
},
resolve: {
extensions: ['', '.js'],
extensions: ['', '.js', '.json'],
},
resolveLoader: {
root: paths.ownNodeModules,
......
......@@ -36,7 +36,7 @@ module.exports = {
publicPath: publicPath
},
resolve: {
extensions: ['', '.js'],
extensions: ['', '.js', '.json'],
},
resolveLoader: {
root: paths.ownNodeModules,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment