[7.0] Switch decorators-legacy to decorators in the Stage 1 Preset (#5318) (#5319)

This commit is contained in:
Alexander 2017-02-16 00:58:31 +03:00 committed by Henry Zhu
parent fa2a373acd
commit 1ba3269ece
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@
"repository": "https://github.com/babel/babel/tree/master/packages/babel-preset-stage-1",
"main": "lib/index.js",
"dependencies": {
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-decorators": "^1.3.4",
"babel-plugin-transform-export-extensions": "^6.22.0",
"babel-preset-stage-2": "^6.22.0"
}

View File

@ -1,6 +1,6 @@
import presetStage2 from "babel-preset-stage-2";
import transformDecoratorsLegacy from "babel-plugin-transform-decorators-legacy";
import transformDecorators from "babel-plugin-transform-decorators";
import transformExportExtensions from "babel-plugin-transform-export-extensions";
export default {
@ -8,7 +8,7 @@ export default {
presetStage2
],
plugins: [
transformDecoratorsLegacy,
transformDecorators,
transformExportExtensions
]
};