diff --git a/package.json b/package.json index 1e885f8..70b9308 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "babel-plugin-transform-class-constructor-call": "^6.6.5", "babel-plugin-transform-class-properties": "^6.6.0", "babel-plugin-transform-decorators": "^6.6.5", + "babel-plugin-transform-decorators-legacy": "^1.3.4", "babel-plugin-transform-do-expressions": "^6.5.0", "babel-plugin-transform-es2015-arrow-functions": "^6.5.2", "babel-plugin-transform-es2015-block-scoped-functions": "^6.6.5", diff --git a/src/index.js b/src/index.js index 4bd8b5d..01ab6ad 100644 --- a/src/index.js +++ b/src/index.js @@ -70,6 +70,7 @@ export const availablePlugins = { 'transform-class-constructor-call': require('babel-plugin-transform-class-constructor-call'), 'transform-class-properties': require('babel-plugin-transform-class-properties'), 'transform-decorators': require('babel-plugin-transform-decorators'), + 'transform-decorators-legacy': require('babel-plugin-transform-decorators-legacy').default, // <- No clue. Nope. 'transform-do-expressions': require('babel-plugin-transform-do-expressions'), 'transform-es2015-arrow-functions': require('babel-plugin-transform-es2015-arrow-functions'), 'transform-es2015-block-scoped-functions': require('babel-plugin-transform-es2015-block-scoped-functions'),