mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-21 05:02:39 +08:00
Merge pull request #11086 from Pyrolistical/remove-babel-plugin-transform-react-constant-elements
removed @babel/plugin-transform-react-constant-elements fixes #11060
This commit is contained in:
commit
e9ebf74cef
@ -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: {
|
||||
|
@ -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",
|
||||
|
@ -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')],
|
||||
};
|
||||
}
|
||||
|
@ -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' } ],
|
||||
],
|
||||
|
@ -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' } ],
|
||||
],
|
||||
|
@ -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',
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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==
|
||||
|
Loading…
x
Reference in New Issue
Block a user