Closed
Description
it seems this loader wont work with webpack2:
//webpack.config.js
loaders: [{
test: /\.js$/,
loaders: ['ng-annotate', 'babel'],
exclude: /node_modules/
}]
using https://github.com/gajus/babel-preset-es2015-webpack (to enable tree-shaking)
//babel.rc
{
"presets": ["es2015-webpack"],
"plugins": [
"transform-class-properties"
]
}
{
"devDependencies": {
"babel-core": "^6.2.1",
"babel-loader": "^6.2.0",
"babel-plugin-transform-class-properties": "^6.4.0",
"ng-annotate-loader": "^0.1.0",
"webpack": "^2.0-beta",
"webpack-dev-server": "^2.0-beta"
}
}
//package.json
none of my angular files gets injections anymore...any hint?
btw im using the "ngInject"
syntax
Metadata
Metadata
Assignees
Labels
No labels