Having a problem with babel-loader or maybe my webpack config. If I use my current implementation works fine, but I know that the test pattern is wrong(i think). Currently a glob, not a regex. If I change it according to doc's, get the following error. I have blown away node_modules and npm installed.
Error: Can't resolve 'bable-loader' in /path/to/app
//no error
rules: [{
test: /\*.js$/,
use: ['ng-annotate-loader', 'bable-loader'],
exclude: /node_modules/
},
//throws error
rules: [{
test: /\.js$/,
use: ['ng-annotate-loader', 'bable-loader'],
exclude: /node_modules/
},
//file : .babelrc
{
"env": {
"testing": {
"presets": [
"es2015"
]
}
},
"presets": [
["es2015", "stage-2", {
"modules": false
}]
]
}
It seems you are misspelling babel-loader
.. It also looks like you need a good night of sleep.