Skip to content

Commit

Permalink
removed @babel/plugin-transform-react-constant-elements fixes storybo…
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrolistical committed Jun 8, 2020
1 parent 5caae38 commit bf4b3c9
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 13 deletions.
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

0 comments on commit bf4b3c9

Please sign in to comment.