mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
added external babel helpers plugin
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
"babel-eslint": "^7.1.0",
|
||||
"babel-jest": "^19.0.0",
|
||||
"babel-plugin-check-es2015-constants": "^6.5.0",
|
||||
"babel-plugin-external-helpers": "^6.22.0",
|
||||
"babel-plugin-syntax-trailing-function-commas": "^6.5.0",
|
||||
"babel-plugin-transform-async-to-generator": "^6.22.0",
|
||||
"babel-plugin-transform-class-properties": "^6.11.5",
|
||||
|
||||
@@ -120,7 +120,7 @@ function updateBabelConfig(babelOpts, bundleType) {
|
||||
newOpts = Object.assign({}, babelOpts);
|
||||
|
||||
// for FB, we don't want the devExpressionWithCodes plugin to run
|
||||
newOpts.plugins = [];
|
||||
newOpts.plugins = [require.resolve('babel-plugin-external-helpers')];
|
||||
return newOpts;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@ const babelOptsReact = {
|
||||
const babelOptsReactART = Object.assign({}, babelOptsReact, {
|
||||
// Include JSX
|
||||
presets: [require.resolve('babel-preset-react')],
|
||||
plugins: [require.resolve('babel-plugin-external-helpers')],
|
||||
});
|
||||
|
||||
const bundles = [
|
||||
|
||||
Reference in New Issue
Block a user