I've experimented with two methods for simultaneously using ng-annotate and babel loaders on my *.js files.
{ //successfully executed
test: /\.js?$/,
loader: 'ng-annotate!babel?presets[]=es2015'
}
{ //encountered a problem
test: /\.js?$/,
loader: 'ng-annotate!babel-loader',
query: {
presets: ['es2015']
}
}
Any insights into why the second loader configuration isn't functioning properly? Any suggestions?