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

Check for JS files first

parent 731908dc
1 merge request!353Add check-filename-webpack-plugin to warn on JSX file extension
Showing with 2 additions and 2 deletions
+2 -2
...@@ -32,7 +32,7 @@ module.exports = { ...@@ -32,7 +32,7 @@ module.exports = {
publicPath: '/' publicPath: '/'
}, },
resolve: { resolve: {
extensions: ['', '.js', '.json'], extensions: ['.js', '.json', ''],
alias: { alias: {
// This `alias` section can be safely removed after ejection. // This `alias` section can be safely removed after ejection.
// We do this because `babel-runtime` may be inside `react-scripts`, // We do this because `babel-runtime` may be inside `react-scripts`,
......
...@@ -37,7 +37,7 @@ module.exports = { ...@@ -37,7 +37,7 @@ module.exports = {
publicPath: publicPath publicPath: publicPath
}, },
resolve: { resolve: {
extensions: ['', '.js', '.json'], extensions: ['.js', '.json', ''],
alias: { alias: {
// This `alias` section can be safely removed after ejection. // This `alias` section can be safely removed after ejection.
// We do this because `babel-runtime` may be inside `react-scripts`, // We do this because `babel-runtime` may be inside `react-scripts`,
......
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