Skip to content

Commit

Permalink
dont remove and add the js loader
Browse files Browse the repository at this point in the history
Now that the babel config is resolved externally so that it can be
stubbed out and tested, webpack.config.js does not know how to change
the loader based on the stage.
  • Loading branch information
benstepp committed May 11, 2016
1 parent e91da8a commit f41081f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/utils/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,13 +281,6 @@ module.exports = (program, directory, stage, webpackPort = 1500, routes = []) =>
require('postcss-reporter'),
],
})
config.removeLoader('js')
config.loader('js', {
test: /\.jsx?$/, // Accept either .js or .jsx files.
exclude: /(node_modules|bower_components)/,
loader: 'babel',
query: babelConfig(program, stage),
})
return config

case 'build-css':
Expand Down

0 comments on commit f41081f

Please sign in to comment.