Add numeric separator to stage 2 preset (#6071)

This commit is contained in:
Rick Waldron 2017-08-10 11:05:35 -04:00 committed by Henry Zhu
parent 3a55e1326c
commit 9c91e35ce4
4 changed files with 7 additions and 4 deletions

View File

@ -10,7 +10,6 @@
"dependencies": {
"babel-plugin-transform-decorators": "7.0.0-alpha.19",
"babel-plugin-transform-export-extensions": "7.0.0-alpha.19",
"babel-plugin-transform-numeric-separator": "7.0.0-alpha.19",
"babel-plugin-transform-optional-chaining": "7.0.0-alpha.19",
"babel-preset-stage-2": "7.0.0-alpha.19"
}

View File

@ -2,7 +2,6 @@ import presetStage2 from "babel-preset-stage-2";
import transformDecorators from "babel-plugin-transform-decorators";
import transformExportExtensions from "babel-plugin-transform-export-extensions";
import transformNumericSeparator from "babel-plugin-transform-numeric-separator";
import transformOptionalChaining from "babel-plugin-transform-optional-chaining";
export default function() {
@ -11,7 +10,6 @@ export default function() {
plugins: [
transformDecorators,
transformExportExtensions,
transformNumericSeparator,
transformOptionalChaining,
],
};

View File

@ -10,6 +10,7 @@
"dependencies": {
"babel-plugin-transform-class-properties": "7.0.0-alpha.19",
"babel-plugin-transform-function-sent": "7.0.0-alpha.19",
"babel-plugin-transform-numeric-separator": "7.0.0-alpha.19",
"babel-preset-stage-3": "7.0.0-alpha.19"
}
}

View File

@ -2,10 +2,15 @@ import presetStage3 from "babel-preset-stage-3";
import transformClassProperties from "babel-plugin-transform-class-properties";
import transformFunctionSent from "babel-plugin-transform-function-sent";
import transformNumericSeparator from "babel-plugin-transform-numeric-separator";
export default function() {
return {
presets: [presetStage3],
plugins: [transformClassProperties, transformFunctionSent],
plugins: [
transformClassProperties,
transformFunctionSent,
transformNumericSeparator,
],
};
}