Skip to content

Commit 84b4634

Browse files
cedric25ktsn
authored andcommitted
Add '-loader' suffix to webpack config (#722)
When copy / pasting the webpack configuration given in the 'Testing' doc page, I end up with following error: ERROR in Entry module not found: Error: Can't resolve 'babel' in '<...>' BREAKING CHANGE: It's no longer allowed to omit the '-loader' suffix when using loaders. You need to specify 'babel-loader' instead of 'babel'. My version of webpack: 2.2.0-rc.3 Adding the '-loader' suffix fixed the problem. Not sure though how safe it is to use 'babel-loader' instead of 'babel' with previous webpack versions...
1 parent 489fe38 commit 84b4634

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/en/testing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ module.exports = {
189189
loaders: [
190190
{
191191
test: /\.js$/,
192-
loader: 'babel',
192+
loader: 'babel-loader',
193193
exclude: /node_modules/
194194
}
195195
]

0 commit comments

Comments
 (0)