Add numeric separator to stage 2 preset (#6071)
This commit is contained in:
parent
3a55e1326c
commit
9c91e35ce4
@ -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"
|
||||
}
|
||||
|
||||
@ -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,
|
||||
],
|
||||
};
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -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,
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user