From 9860f5e396775603c6ed71b152fe7f2ffcbc59c2 Mon Sep 17 00:00:00 2001 From: kumavis Date: Tue, 12 Mar 2019 14:40:26 +0800 Subject: [PATCH] build - babel - move config to babelrc --- .babelrc | 25 ++++++++++++++++++++++--- package.json | 24 +----------------------- 2 files changed, 23 insertions(+), 26 deletions(-) diff --git a/.babelrc b/.babelrc index 9b1d5409bc17..cfa759dd9047 100644 --- a/.babelrc +++ b/.babelrc @@ -1,4 +1,23 @@ { - "presets": [["env", { "targets": { "browsers": [">0.25%", "not ie 11", "not op_mini all"] } } ], "react", "stage-0"], - "plugins": ["transform-runtime", "transform-async-to-generator", "transform-class-properties"] -} + "presets": [ + [ + "env", + { + "targets": { + "browsers": [ + ">0.25%", + "not ie 11", + "not op_mini all" + ] + } + } + ], + "react", + "stage-0" + ], + "plugins": [ + "transform-runtime", + "transform-async-to-generator", + "transform-class-properties" + ] +} \ No newline at end of file diff --git a/package.json b/package.json index fa926abafd00..2b288d2ba541 100644 --- a/package.json +++ b/package.json @@ -40,29 +40,7 @@ }, "browserify": { "transform": [ - [ - "babelify", - { - "presets": [ - [ - "env", - { - "browsers": [ - ">0.25%", - "not ie 11", - "not op_mini all" - ] - } - ], - "stage-0" - ] - }, - { - "plugins": [ - "transform-class-properties" - ] - } - ], + "babelify", "reactify", "brfs" ]