Skip to content

Commit

Permalink
Add support for decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
geowarin committed May 9, 2016
1 parent 9a43abb commit dbdf2b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/babel/createBabelConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ module.exports = function createBabelConfig (context, isWebpack) {
require.resolve('babel-preset-stage-0')
],
plugins: [
[require.resolve('babel-plugin-module-alias'), context.userConfig.aliases]
[require.resolve('babel-plugin-module-alias'), context.userConfig.aliases],
[require.resolve('babel-plugin-transform-decorators-legacy')]
],
env: {
development: {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"babel-loader": "^6.2.4",
"babel-plugin-module-alias": "^1.4.0",
"babel-plugin-react-transform": "^2.0.2",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-runtime": "^6.7.5",
"babel-preset-es2015-webpack": "^6.4.1",
"babel-preset-react": "^6.5.0",
Expand Down

0 comments on commit dbdf2b4

Please sign in to comment.