Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed @babel/plugin-transform-react-constant-elements fixes #11060 #11086

Merged
merged 1 commit into from
Jun 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .babelrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
1 change: 0 additions & 1 deletion app/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 1 addition & 5 deletions app/react/src/server/framework-preset-react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')],
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -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' } ],
],
Expand Down
1 change: 0 additions & 1 deletion docs/src/pages/configurations/default-config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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' } ],
],
Expand Down
1 change: 0 additions & 1 deletion examples/official-storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 0 additions & 1 deletion lib/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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==
Expand Down