diff --git a/.babelrc.js b/.babelrc.js index 252bdc33b896..2ace3f9c81be 100644 --- a/.babelrc.js +++ b/.babelrc.js @@ -62,7 +62,6 @@ module.exports = { ['@babel/plugin-proposal-class-properties', { loose: true }], 'babel-plugin-macros', ['emotion', { sourceMap: true, autoLabel: true }], - '@babel/plugin-transform-react-constant-elements', 'babel-plugin-add-react-displayname', ], env: { diff --git a/app/react/package.json b/app/react/package.json index d05f976a34f4..691854510c07 100644 --- a/app/react/package.json +++ b/app/react/package.json @@ -34,7 +34,6 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@babel/plugin-transform-react-constant-elements": "^7.6.3", "@babel/preset-flow": "^7.0.0", "@babel/preset-react": "^7.0.0", "@storybook/addons": "6.0.0-beta.23", diff --git a/app/react/src/server/framework-preset-react.ts b/app/react/src/server/framework-preset-react.ts index 23d9151b636b..1c4f453df0f8 100644 --- a/app/react/src/server/framework-preset-react.ts +++ b/app/react/src/server/framework-preset-react.ts @@ -8,10 +8,6 @@ export function babelDefault(config: TransformOptions) { require.resolve('@babel/preset-react'), require.resolve('@babel/preset-flow'), ], - plugins: [ - ...(config.plugins || []), - require.resolve('@babel/plugin-transform-react-constant-elements'), - require.resolve('babel-plugin-add-react-displayname'), - ], + plugins: [...(config.plugins || []), require.resolve('babel-plugin-add-react-displayname')], }; } diff --git a/docs/src/pages/configurations/custom-webpack-config/index.md b/docs/src/pages/configurations/custom-webpack-config/index.md index ac1d7e4da001..8016664bbfc2 100644 --- a/docs/src/pages/configurations/custom-webpack-config/index.md +++ b/docs/src/pages/configurations/custom-webpack-config/index.md @@ -96,7 +96,6 @@ The webpack config [is configurable](/configurations/custom-webpack-config#webpa './node_modules/@babel/plugin-syntax-dynamic-import/lib/index.js', [ './node_modules/babel-plugin-emotion/dist/babel-plugin-emotion.cjs.js', { sourceMap: true, autoLabel: true } ], './node_modules/babel-plugin-macros/dist/index.js', - './node_modules/@babel/plugin-transform-react-constant-elements/lib/index.js', './node_modules/babel-plugin-add-react-displayname/index.js', [ './node_modules/babel-plugin-react-docgen/lib/index.js', { DOC_GEN_COLLECTION_NAME: 'STORYBOOK_REACT_CLASSES' } ], ], diff --git a/docs/src/pages/configurations/default-config/index.md b/docs/src/pages/configurations/default-config/index.md index dd3673d3dfe0..79daed6ed14f 100644 --- a/docs/src/pages/configurations/default-config/index.md +++ b/docs/src/pages/configurations/default-config/index.md @@ -112,7 +112,6 @@ The webpack config [is configurable](/configurations/custom-webpack-config/), an './node_modules/@babel/plugin-syntax-dynamic-import/lib/index.js', [ './node_modules/babel-plugin-emotion/dist/babel-plugin-emotion.cjs.js', { sourceMap: true, autoLabel: true } ], './node_modules/babel-plugin-macros/dist/index.js', - './node_modules/@babel/plugin-transform-react-constant-elements/lib/index.js', './node_modules/babel-plugin-add-react-displayname/index.js', [ './node_modules/babel-plugin-react-docgen/lib/index.js', { DOC_GEN_COLLECTION_NAME: 'STORYBOOK_REACT_CLASSES' } ], ], diff --git a/examples/official-storybook/main.ts b/examples/official-storybook/main.ts index cd8071d4a542..6bbff4396eb3 100644 --- a/examples/official-storybook/main.ts +++ b/examples/official-storybook/main.ts @@ -58,7 +58,6 @@ module.exports = { '@babel/plugin-syntax-dynamic-import', ['babel-plugin-emotion', { sourceMap: true, autoLabel: true }], 'babel-plugin-macros', - '@babel/plugin-transform-react-constant-elements', 'babel-plugin-add-react-displayname', [ 'babel-plugin-react-docgen', diff --git a/lib/core/package.json b/lib/core/package.json index 795f75cdfabd..116ed4f1144f 100644 --- a/lib/core/package.json +++ b/lib/core/package.json @@ -43,7 +43,6 @@ "@babel/plugin-transform-destructuring": "^7.9.5", "@babel/plugin-transform-for-of": "^7.9.0", "@babel/plugin-transform-parameters": "^7.9.5", - "@babel/plugin-transform-react-constant-elements": "^7.9.0", "@babel/plugin-transform-shorthand-properties": "^7.8.3", "@babel/plugin-transform-spread": "^7.8.3", "@babel/plugin-transform-template-literals": "^7.8.3", diff --git a/package.json b/package.json index ed7b2200b9f9..4e4b11ebe1e8 100644 --- a/package.json +++ b/package.json @@ -130,7 +130,6 @@ "@babel/plugin-proposal-object-rest-spread": "^7.9.6", "@babel/plugin-proposal-private-methods": "^7.3.3", "@babel/plugin-syntax-dynamic-import": "^7.2.0", - "@babel/plugin-transform-react-constant-elements": "^7.6.3", "@babel/preset-env": "^7.9.6", "@babel/preset-flow": "^7.0.0", "@babel/preset-react": "^7.0.0", diff --git a/yarn.lock b/yarn.lock index 914eacc082a9..b43e2c3a6670 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1271,7 +1271,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.3" -"@babel/plugin-transform-react-constant-elements@^7.0.0", "@babel/plugin-transform-react-constant-elements@^7.6.3", "@babel/plugin-transform-react-constant-elements@^7.9.0": +"@babel/plugin-transform-react-constant-elements@^7.0.0", "@babel/plugin-transform-react-constant-elements@^7.9.0": version "7.9.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-constant-elements/-/plugin-transform-react-constant-elements-7.9.0.tgz#a75abc936a3819edec42d3386d9f1c93f28d9d9e" integrity sha512-wXMXsToAUOxJuBBEHajqKLFWcCkOSLshTI2ChCFFj1zDd7od4IOxiwLCOObNUvOpkxLpjIuaIdBMmNt6ocCPAw==