From 4d6e8ea36dd498ad3139d23f717f03f612533c01 Mon Sep 17 00:00:00 2001 From: James Garbutt <43081j@users.noreply.github.com> Date: Mon, 9 Nov 2020 11:11:08 +0000 Subject: [PATCH 01/13] replace preset-env polyfills with babel-polyfills --- lib/core/src/server/common/babel.ts | 6 +++++- package.json | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/core/src/server/common/babel.ts b/lib/core/src/server/common/babel.ts index eae844241914..cb216b34add9 100644 --- a/lib/core/src/server/common/babel.ts +++ b/lib/core/src/server/common/babel.ts @@ -31,12 +31,16 @@ export const plugins = [ */ require.resolve('@babel/plugin-proposal-optional-chaining'), require.resolve('@babel/plugin-proposal-nullish-coalescing-operator'), + [ + require.resolve('babel-plugin-polyfill-corejs3'), + { method: "usage-global" } + ] ]; export const presets = [ [ require.resolve('@babel/preset-env'), - { shippedProposals: true, useBuiltIns: 'usage', corejs: '3' }, + { shippedProposals: true }, ], require.resolve('@babel/preset-typescript'), ]; diff --git a/package.json b/package.json index 8e7c1566ff9d..913c51b7fe48 100644 --- a/package.json +++ b/package.json @@ -140,6 +140,7 @@ "babel-plugin-dynamic-import-node": "^2.3.3", "babel-plugin-emotion": "^10.0.20", "babel-plugin-macros": "^2.7.0", + "babel-plugin-polyfill-corejs3": "0.0.6", "babel-plugin-require-context-hook": "^1.0.0", "chalk": "^4.0.0", "chromatic": "^5.0.0", From b9044dcc1dd7a47f432d58c0954364b320d58fd9 Mon Sep 17 00:00:00 2001 From: James Garbutt <43081j@users.noreply.github.com> Date: Mon, 9 Nov 2020 11:23:50 +0000 Subject: [PATCH 02/13] use absoluteImports --- lib/core/src/server/common/babel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/src/server/common/babel.ts b/lib/core/src/server/common/babel.ts index cb216b34add9..96e9c9853a36 100644 --- a/lib/core/src/server/common/babel.ts +++ b/lib/core/src/server/common/babel.ts @@ -33,7 +33,7 @@ export const plugins = [ require.resolve('@babel/plugin-proposal-nullish-coalescing-operator'), [ require.resolve('babel-plugin-polyfill-corejs3'), - { method: "usage-global" } + { method: "usage-global", absoluteImports: true } ] ]; From 8e35b9ff69b08b2209539c2110fab6202eb1c3ba Mon Sep 17 00:00:00 2001 From: James Garbutt <43081j@users.noreply.github.com> Date: Mon, 9 Nov 2020 11:38:15 +0000 Subject: [PATCH 03/13] update lockfile --- yarn.lock | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/yarn.lock b/yarn.lock index 16fc6c01be50..ae1e7eb49f03 100644 --- a/yarn.lock +++ b/yarn.lock @@ -790,6 +790,20 @@ "@babel/types" "^7.8.3" lodash "^4.17.13" +"@babel/helper-define-polyfill-provider@^0.0.4": + version "0.0.4" + resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.0.4.tgz#d8b382b8796057343b27a2094944f8d5ab6a2561" + integrity sha512-wlgaWVW0uGs6mFZC/ghJWgWwAjhzjgjGcuedBw3TLFFtXXbqBLBwJx5NPboXfWPNazhpduWdM+Rly9E/RpX5Jw== + dependencies: + "@babel/helper-compilation-targets" "^7.10.4" + "@babel/helper-module-imports" "^7.10.4" + "@babel/helper-plugin-utils" "^7.10.4" + "@babel/traverse" "^7.11.5" + debug "^4.1.1" + lodash.debounce "^4.0.8" + resolve "^1.14.2" + semver "^6.1.2" + "@babel/helper-explode-assignable-expression@^7.10.4": version "7.11.4" resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.11.4.tgz#2d8e3470252cc17aba917ede7803d4a7a276a41b" @@ -9253,6 +9267,14 @@ babel-plugin-named-asset-import@^0.3.1, babel-plugin-named-asset-import@^0.3.2, resolved "https://registry.yarnpkg.com/babel-plugin-named-asset-import/-/babel-plugin-named-asset-import-0.3.6.tgz#c9750a1b38d85112c9e166bf3ef7c5dbc605f4be" integrity sha512-1aGDUfL1qOOIoqk9QKGIo2lANk+C7ko/fqH0uIyC71x3PEGz0uVP8ISgfEsFuG+FKmjHTvFK/nNM8dowpmUxLA== +babel-plugin-polyfill-corejs3@0.0.6: + version "0.0.6" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.0.6.tgz#5c8a634f4c9634ae658e7995bc4ca3bf9988e79a" + integrity sha512-aX9T32mkCqe1d+OFLQkvWz+o25cqsDOlYIogxRWMt8+kXJ/N8DznseOtHBemfTaY0j0ICyqbU3sSdZU816R2eg== + dependencies: + "@babel/helper-define-polyfill-provider" "^0.0.4" + core-js-compat "^3.6.4" + babel-plugin-react-docgen@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/babel-plugin-react-docgen/-/babel-plugin-react-docgen-4.1.0.tgz#1dfa447dac9ca32d625a123df5733a9e47287c26" @@ -23404,6 +23426,11 @@ lodash.debounce@^3.1.1: dependencies: lodash._getnative "^3.0.0" +lodash.debounce@^4.0.8: + version "4.0.8" + resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" + integrity sha1-gteb/zCmfEAF/9XiUVMArZyk168= + lodash.defaultsdeep@^4.6.0, lodash.defaultsdeep@^4.6.1: version "4.6.1" resolved "https://registry.yarnpkg.com/lodash.defaultsdeep/-/lodash.defaultsdeep-4.6.1.tgz#512e9bd721d272d94e3d3a63653fa17516741ca6" From d9c71f5b418ada070f80530180cddd3d867e7738 Mon Sep 17 00:00:00 2001 From: James Garbutt <43081j@users.noreply.github.com> Date: Mon, 9 Nov 2020 12:26:25 +0000 Subject: [PATCH 04/13] specify core-js absolutely --- lib/core/src/server/common/babel.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/core/src/server/common/babel.ts b/lib/core/src/server/common/babel.ts index 96e9c9853a36..e8a3e1284eb0 100644 --- a/lib/core/src/server/common/babel.ts +++ b/lib/core/src/server/common/babel.ts @@ -33,7 +33,10 @@ export const plugins = [ require.resolve('@babel/plugin-proposal-nullish-coalescing-operator'), [ require.resolve('babel-plugin-polyfill-corejs3'), - { method: "usage-global", absoluteImports: true } + { + method: "usage-global", + absoluteImports: require.resolve('core-js') + } ] ]; From a8fbab222d8baa371f4e10deddf5e71e2c96ee9e Mon Sep 17 00:00:00 2001 From: James Garbutt <43081j@users.noreply.github.com> Date: Mon, 9 Nov 2020 13:33:19 +0000 Subject: [PATCH 05/13] remove core-js dependency --- scripts/run-e2e-config.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/run-e2e-config.ts b/scripts/run-e2e-config.ts index 7fce51b6e613..b7570236a0a3 100644 --- a/scripts/run-e2e-config.ts +++ b/scripts/run-e2e-config.ts @@ -141,8 +141,6 @@ export const sfcVue: Parameters = { version: 'latest', generator: fromDeps('vue', 'vue-loader', 'vue-template-compiler', 'webpack@webpack-4'), additionalDeps: [ - // TODO: remove when https://github.com/storybookjs/storybook/issues/11255 is solved - 'core-js', // FIXME: We still have issue with react as peer/regular deps... // For some details see: https://github.com/storybookjs/storybook/pull/13059/commits/8d4938bc4aef55e208a89f3547674c64ed39d3b3#r520101039 'react', From 9fba6794c5234806f2e72c2bd4f65b4d1ba35a01 Mon Sep 17 00:00:00 2001 From: James Garbutt <43081j@users.noreply.github.com> Date: Mon, 9 Nov 2020 14:47:32 +0000 Subject: [PATCH 06/13] update polyfill babel plugin --- package.json | 2 +- yarn.lock | 61 ++++++++++++++++++++++++++++++++++++++++------------ 2 files changed, 48 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index 913c51b7fe48..e1aa34a0aaed 100644 --- a/package.json +++ b/package.json @@ -140,7 +140,7 @@ "babel-plugin-dynamic-import-node": "^2.3.3", "babel-plugin-emotion": "^10.0.20", "babel-plugin-macros": "^2.7.0", - "babel-plugin-polyfill-corejs3": "0.0.6", + "babel-plugin-polyfill-corejs3": "^0.0.7", "babel-plugin-require-context-hook": "^1.0.0", "chalk": "^4.0.0", "chromatic": "^5.0.0", diff --git a/yarn.lock b/yarn.lock index ae1e7eb49f03..8432c64136a8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -790,10 +790,10 @@ "@babel/types" "^7.8.3" lodash "^4.17.13" -"@babel/helper-define-polyfill-provider@^0.0.4": - version "0.0.4" - resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.0.4.tgz#d8b382b8796057343b27a2094944f8d5ab6a2561" - integrity sha512-wlgaWVW0uGs6mFZC/ghJWgWwAjhzjgjGcuedBw3TLFFtXXbqBLBwJx5NPboXfWPNazhpduWdM+Rly9E/RpX5Jw== +"@babel/helper-define-polyfill-provider@^0.0.5": + version "0.0.5" + resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.0.5.tgz#a800224db85c562db2f31a1a6fe6e93d25b7b8d1" + integrity sha512-SjyoYnKgK5fXyIx9X5Fa02cCXJtkp17t0iQeSv0cKu3/rDhcA2DszStwx3ugFy+mdZeTm24ZwlDU1n3/LSN6Cg== dependencies: "@babel/helper-compilation-targets" "^7.10.4" "@babel/helper-module-imports" "^7.10.4" @@ -9267,13 +9267,13 @@ babel-plugin-named-asset-import@^0.3.1, babel-plugin-named-asset-import@^0.3.2, resolved "https://registry.yarnpkg.com/babel-plugin-named-asset-import/-/babel-plugin-named-asset-import-0.3.6.tgz#c9750a1b38d85112c9e166bf3ef7c5dbc605f4be" integrity sha512-1aGDUfL1qOOIoqk9QKGIo2lANk+C7ko/fqH0uIyC71x3PEGz0uVP8ISgfEsFuG+FKmjHTvFK/nNM8dowpmUxLA== -babel-plugin-polyfill-corejs3@0.0.6: - version "0.0.6" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.0.6.tgz#5c8a634f4c9634ae658e7995bc4ca3bf9988e79a" - integrity sha512-aX9T32mkCqe1d+OFLQkvWz+o25cqsDOlYIogxRWMt8+kXJ/N8DznseOtHBemfTaY0j0ICyqbU3sSdZU816R2eg== +babel-plugin-polyfill-corejs3@^0.0.7: + version "0.0.7" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.0.7.tgz#624aa59510c2db41df5b79de1d304b9b05e565ef" + integrity sha512-aCTLXh9sTc+ZC3GFi1buLDkmXGaeenTzGZjXcD5b3Zqf1xhgoW4vX6H0QZUGW/u9QjKPafeiZSkaiVjL/U1uzg== dependencies: - "@babel/helper-define-polyfill-provider" "^0.0.4" - core-js-compat "^3.6.4" + "@babel/helper-define-polyfill-provider" "^0.0.5" + core-js-compat "^3.7.0" babel-plugin-react-docgen@^4.1.0: version "4.1.0" @@ -11001,6 +11001,16 @@ browserslist@^4.0.0, browserslist@^4.1.0, browserslist@^4.1.1, browserslist@^4.1 node-releases "^1.1.53" pkg-up "^2.0.0" +browserslist@^4.14.6: + version "4.14.6" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.14.6.tgz#97702a9c212e0c6b6afefad913d3a1538e348457" + integrity sha512-zeFYcUo85ENhc/zxHbiIp0LGzzTrE2Pv2JhxvS7kpUb9Q9D38kUX6Bie7pGutJ/5iF5rOxE7CepAuWD56xJ33A== + dependencies: + caniuse-lite "^1.0.30001154" + electron-to-chromium "^1.3.585" + escalade "^3.1.1" + node-releases "^1.1.65" + browserstack@^1.5.1: version "1.6.0" resolved "https://registry.yarnpkg.com/browserstack/-/browserstack-1.6.0.tgz#5a56ab90987605d9c138d7a8b88128370297f9bf" @@ -11530,10 +11540,10 @@ caniuse-lite@^1.0.0, caniuse-lite@^1.0.30000844, caniuse-lite@^1.0.30000939, can resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001096.tgz#5a4541af5317dc21f91f5b24d453030a35f919c0" integrity sha512-PFTw9UyVfbkcMEFs82q8XVlRayj7HKvnhu5BLcmjGpv+SNyiWasCcWXPGJuO0rK0dhLRDJmtZcJ+LHUfypbw1w== -caniuse-lite@^1.0.30001109: - version "1.0.30001156" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001156.tgz#75c20937b6012fe2b02ab58b30d475bf0718de97" - integrity sha512-z7qztybA2eFZTB6Z3yvaQBIoJpQtsewRD74adw2UbRWwsRq3jIPvgrQGawBMbfafekQaD21FWuXNcywtTDGGCw== +caniuse-lite@^1.0.30001154: + version "1.0.30001157" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001157.tgz#2d11aaeb239b340bc1aa730eca18a37fdb07a9ab" + integrity sha512-gOerH9Wz2IRZ2ZPdMfBvyOi3cjaz4O4dgNwPGzx8EhqAs4+2IL/O+fJsbt+znSigujoZG8bVcIAUM/I/E5K3MA== canonical-path@1.0.0: version "1.0.0" @@ -12812,6 +12822,14 @@ core-js-compat@^3.6.2, core-js-compat@^3.6.4: browserslist "^4.8.5" semver "7.0.0" +core-js-compat@^3.7.0: + version "3.7.0" + resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.7.0.tgz#8479c5d3d672d83f1f5ab94cf353e57113e065ed" + integrity sha512-V8yBI3+ZLDVomoWICO6kq/CD28Y4r1M7CWeO4AGpMdMfseu8bkSubBmUPySMGKRTS+su4XQ07zUkAsiu9FCWTg== + dependencies: + browserslist "^4.14.6" + semver "7.0.0" + core-js-pure@^3.0.0, core-js-pure@^3.0.1: version "3.6.5" resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.6.5.tgz#c79e75f5e38dbc85a662d91eea52b8256d53b813" @@ -14584,6 +14602,11 @@ electron-to-chromium@^1.3.247, electron-to-chromium@^1.3.378, electron-to-chromi resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.452.tgz#ef6877702722471aa044a2429336cd450629934d" integrity sha512-IdbjgCEqDvcU/1kUQa6C49I2NZOY3SBmU9Eus7mdFdJJBqn0Lg1Epfi/T4nqVcxTNBEGhcjwMhY1EysMBsXZrw== +electron-to-chromium@^1.3.585: + version "1.3.591" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.591.tgz#a18892bf1acb93f7b6e4da402705d564bc235017" + integrity sha512-ol/0WzjL4NS4Kqy9VD6xXQON91xIihDT36sYCew/G/bnd1v0/4D+kahp26JauQhgFUjrdva3kRSo7URcUmQ+qw== + elegant-spinner@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/elegant-spinner/-/elegant-spinner-1.0.1.tgz#db043521c95d7e303fd8f345bedc3349cfb0729e" @@ -15541,6 +15564,11 @@ es6-symbol@^3.1.1, es6-symbol@~3.1.1, es6-symbol@~3.1.3: d "^1.0.1" ext "^1.1.2" +escalade@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" + integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== + escape-goat@^2.0.0: version "2.1.1" resolved "https://registry.yarnpkg.com/escape-goat/-/escape-goat-2.1.1.tgz#1b2dc77003676c457ec760b2dc68edb648188675" @@ -25289,6 +25317,11 @@ node-releases@^1.1.29, node-releases@^1.1.52, node-releases@^1.1.53: resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.56.tgz#bc054a417d316e3adac90eafb7e1932802f28705" integrity sha512-EVo605FhWLygH8a64TjgpjyHYOihkxECwX1bHHr8tETJKWEiWS2YJjPbvsX2jFjnjTNEgBCmk9mLjKG1Mf11cw== +node-releases@^1.1.65: + version "1.1.66" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.66.tgz#609bd0dc069381015cd982300bae51ab4f1b1814" + integrity sha512-JHEQ1iWPGK+38VLB2H9ef2otU4l8s3yAMt9Xf934r6+ojCYDMHPMqvCc9TnzfeFSP1QEOeU6YZEd3+De0LTCgg== + node-sass@^4.12.0, node-sass@^4.14.0: version "4.14.1" resolved "https://registry.yarnpkg.com/node-sass/-/node-sass-4.14.1.tgz#99c87ec2efb7047ed638fb4c9db7f3a42e2217b5" From 58a61458cd910d66d90dd6085c2cc5ba96a171e8 Mon Sep 17 00:00:00 2001 From: James Garbutt <43081j@users.noreply.github.com> Date: Mon, 9 Nov 2020 15:21:41 +0000 Subject: [PATCH 07/13] move dependency to core --- lib/core/package.json | 1 + package.json | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/package.json b/lib/core/package.json index 1445b34098ef..a9d35c57a919 100644 --- a/lib/core/package.json +++ b/lib/core/package.json @@ -75,6 +75,7 @@ "babel-loader": "^8.0.6", "babel-plugin-emotion": "^10.0.20", "babel-plugin-macros": "^2.8.0", + "babel-plugin-polyfill-corejs3": "^0.0.7", "babel-preset-minify": "^0.5.0 || 0.6.0-alpha.5", "better-opn": "^2.0.0", "boxen": "^4.1.0", diff --git a/package.json b/package.json index e1aa34a0aaed..8e7c1566ff9d 100644 --- a/package.json +++ b/package.json @@ -140,7 +140,6 @@ "babel-plugin-dynamic-import-node": "^2.3.3", "babel-plugin-emotion": "^10.0.20", "babel-plugin-macros": "^2.7.0", - "babel-plugin-polyfill-corejs3": "^0.0.7", "babel-plugin-require-context-hook": "^1.0.0", "chalk": "^4.0.0", "chromatic": "^5.0.0", From bedb720044055aa9a12c66a9548e533c82dfac81 Mon Sep 17 00:00:00 2001 From: James Garbutt <43081j@users.noreply.github.com> Date: Mon, 9 Nov 2020 16:03:02 +0000 Subject: [PATCH 08/13] remove all remaining unused core-js dependencies --- addons/a11y/package.json | 1 - addons/actions/package.json | 1 - addons/backgrounds/package.json | 1 - addons/controls/package.json | 1 - addons/cssresources/package.json | 1 - addons/design-assets/package.json | 1 - addons/docs/package.json | 1 - addons/essentials/package.json | 1 - addons/events/package.json | 1 - addons/google-analytics/package.json | 1 - addons/graphql/package.json | 1 - addons/jest/package.json | 1 - addons/knobs/package.json | 1 - addons/links/package.json | 1 - addons/queryparams/package.json | 1 - addons/storyshots/storyshots-puppeteer/package.json | 1 - addons/storysource/package.json | 1 - addons/toolbars/package.json | 3 +-- addons/viewport/package.json | 1 - app/ember/package.json | 1 - app/html/package.json | 1 - app/marionette/package.json | 1 - app/marko/package.json | 1 - app/mithril/package.json | 1 - app/preact/package.json | 1 - app/rax/package.json | 1 - app/react/package.json | 1 - app/riot/package.json | 1 - app/server/package.json | 1 - app/svelte/package.json | 1 - app/vue/package.json | 1 - dev-kits/addon-decorator/package.json | 1 - dev-kits/addon-parameter/package.json | 1 - dev-kits/addon-roundtrip/package.json | 1 - examples/vue-cli/package.json | 1 - lib/addons/package.json | 1 - lib/api/package.json | 1 - lib/channel-postmessage/package.json | 1 - lib/channel-websocket/package.json | 1 - lib/channels/package.json | 1 - lib/client-api/package.json | 1 - lib/client-logger/package.json | 1 - lib/codemod/package.json | 1 - lib/components/package.json | 1 - lib/core-events/package.json | 1 - lib/node-logger/package.json | 1 - lib/postinstall/package.json | 1 - lib/router/package.json | 1 - lib/source-loader/package.json | 1 - lib/theming/package.json | 1 - 50 files changed, 1 insertion(+), 51 deletions(-) diff --git a/addons/a11y/package.json b/addons/a11y/package.json index 14f3395d7676..77f2bb8effac 100644 --- a/addons/a11y/package.json +++ b/addons/a11y/package.json @@ -42,7 +42,6 @@ "@storybook/core-events": "6.1.1", "@storybook/theming": "6.1.1", "axe-core": "^4.0.1", - "core-js": "^3.0.1", "global": "^4.3.2", "lodash": "^4.17.15", "react-sizeme": "^2.5.2", diff --git a/addons/actions/package.json b/addons/actions/package.json index f897af21d710..a67ea535ba73 100644 --- a/addons/actions/package.json +++ b/addons/actions/package.json @@ -34,7 +34,6 @@ "@storybook/components": "6.1.1", "@storybook/core-events": "6.1.1", "@storybook/theming": "6.1.1", - "core-js": "^3.0.1", "fast-deep-equal": "^3.1.1", "global": "^4.3.2", "lodash": "^4.17.15", diff --git a/addons/backgrounds/package.json b/addons/backgrounds/package.json index 5f1c74bbecdb..b9598f8c8d0b 100644 --- a/addons/backgrounds/package.json +++ b/addons/backgrounds/package.json @@ -38,7 +38,6 @@ "@storybook/components": "6.1.1", "@storybook/core-events": "6.1.1", "@storybook/theming": "6.1.1", - "core-js": "^3.0.1", "global": "^4.3.2", "memoizerific": "^1.11.3", "regenerator-runtime": "^0.13.7", diff --git a/addons/controls/package.json b/addons/controls/package.json index 33d7d0ca7164..c1675a28537f 100644 --- a/addons/controls/package.json +++ b/addons/controls/package.json @@ -36,7 +36,6 @@ "@storybook/components": "6.1.1", "@storybook/node-logger": "6.1.1", "@storybook/theming": "6.1.1", - "core-js": "^3.0.1", "ts-dedent": "^2.0.0" }, "peerDependencies": { diff --git a/addons/cssresources/package.json b/addons/cssresources/package.json index d8b997f4c271..ffcbaf105186 100644 --- a/addons/cssresources/package.json +++ b/addons/cssresources/package.json @@ -37,7 +37,6 @@ "@storybook/components": "6.1.1", "@storybook/core-events": "6.1.1", "@storybook/theming": "6.1.1", - "core-js": "^3.0.1", "global": "^4.3.2", "regenerator-runtime": "^0.13.7" }, diff --git a/addons/design-assets/package.json b/addons/design-assets/package.json index c0cb3b97c2bf..a7951f54239f 100644 --- a/addons/design-assets/package.json +++ b/addons/design-assets/package.json @@ -40,7 +40,6 @@ "@storybook/components": "6.1.1", "@storybook/core-events": "6.1.1", "@storybook/theming": "6.1.1", - "core-js": "^3.0.1", "global": "^4.3.2", "regenerator-runtime": "^0.13.7", "ts-dedent": "^2.0.0", diff --git a/addons/docs/package.json b/addons/docs/package.json index 3017a498c217..2db4c8b1b796 100644 --- a/addons/docs/package.json +++ b/addons/docs/package.json @@ -63,7 +63,6 @@ "acorn": "^7.1.0", "acorn-jsx": "^5.1.0", "acorn-walk": "^7.0.0", - "core-js": "^3.0.1", "doctrine": "^3.0.0", "escodegen": "^1.12.0", "fast-deep-equal": "^3.1.1", diff --git a/addons/essentials/package.json b/addons/essentials/package.json index 61679c83e6b6..5bee7df4e224 100644 --- a/addons/essentials/package.json +++ b/addons/essentials/package.json @@ -37,7 +37,6 @@ "@storybook/addons": "6.1.1", "@storybook/api": "6.1.1", "@storybook/node-logger": "6.1.1", - "core-js": "^3.0.1", "regenerator-runtime": "^0.13.7", "ts-dedent": "^2.0.0" }, diff --git a/addons/events/package.json b/addons/events/package.json index 8930ff151f1e..142840606e6b 100644 --- a/addons/events/package.json +++ b/addons/events/package.json @@ -36,7 +36,6 @@ "@storybook/client-api": "6.1.1", "@storybook/core-events": "6.1.1", "@storybook/theming": "6.1.1", - "core-js": "^3.0.1", "format-json": "^1.0.3", "lodash": "^4.17.15", "prop-types": "^15.7.2", diff --git a/addons/google-analytics/package.json b/addons/google-analytics/package.json index a3d3c15b0395..2156784d6bb1 100644 --- a/addons/google-analytics/package.json +++ b/addons/google-analytics/package.json @@ -22,7 +22,6 @@ "dependencies": { "@storybook/addons": "6.1.1", "@storybook/core-events": "6.1.1", - "core-js": "^3.0.1", "global": "^4.3.2", "react-ga": "^2.5.7", "regenerator-runtime": "^0.13.7" diff --git a/addons/graphql/package.json b/addons/graphql/package.json index 3975d366a739..7132300b5ed3 100644 --- a/addons/graphql/package.json +++ b/addons/graphql/package.json @@ -35,7 +35,6 @@ "@storybook/api": "6.1.1", "@types/webpack": "^4.41.24", "babel-loader": "^8.0.6", - "core-js": "^3.0.1", "global": "^4.3.2", "graphiql": "^0.17.5", "graphql": "^15.0.0", diff --git a/addons/jest/package.json b/addons/jest/package.json index 49e3433cf46f..2edf446e4094 100644 --- a/addons/jest/package.json +++ b/addons/jest/package.json @@ -40,7 +40,6 @@ "@storybook/components": "6.1.1", "@storybook/core-events": "6.1.1", "@storybook/theming": "6.1.1", - "core-js": "^3.0.1", "global": "^4.3.2", "react-sizeme": "^2.5.2", "regenerator-runtime": "^0.13.7", diff --git a/addons/knobs/package.json b/addons/knobs/package.json index dd093dda92d2..6fec8ff1caeb 100644 --- a/addons/knobs/package.json +++ b/addons/knobs/package.json @@ -37,7 +37,6 @@ "@storybook/core-events": "6.1.1", "@storybook/theming": "6.1.1", "copy-to-clipboard": "^3.0.8", - "core-js": "^3.0.1", "escape-html": "^1.0.3", "fast-deep-equal": "^3.1.1", "global": "^4.3.2", diff --git a/addons/links/package.json b/addons/links/package.json index af95a6bd51ea..30529036ba1d 100644 --- a/addons/links/package.json +++ b/addons/links/package.json @@ -35,7 +35,6 @@ "@storybook/csf": "0.0.1", "@storybook/router": "6.1.1", "@types/qs": "^6.9.0", - "core-js": "^3.0.1", "global": "^4.3.2", "prop-types": "^15.7.2", "qs": "^6.6.0", diff --git a/addons/queryparams/package.json b/addons/queryparams/package.json index e7409673bb18..14dc5469ea77 100644 --- a/addons/queryparams/package.json +++ b/addons/queryparams/package.json @@ -36,7 +36,6 @@ "@storybook/components": "6.1.1", "@storybook/core-events": "6.1.1", "@storybook/theming": "6.1.1", - "core-js": "^3.0.1", "global": "^4.3.2", "qs": "^6.6.0", "regenerator-runtime": "^0.13.7", diff --git a/addons/storyshots/storyshots-puppeteer/package.json b/addons/storyshots/storyshots-puppeteer/package.json index 825892f37ed6..6cd83aae6f1a 100644 --- a/addons/storyshots/storyshots-puppeteer/package.json +++ b/addons/storyshots/storyshots-puppeteer/package.json @@ -33,7 +33,6 @@ "@storybook/node-logger": "6.1.1", "@types/jest-image-snapshot": "^2.8.0", "@wordpress/jest-puppeteer-axe": "^1.5.0", - "core-js": "^3.0.1", "jest-image-snapshot": "^4.0.2", "regenerator-runtime": "^0.13.7" }, diff --git a/addons/storysource/package.json b/addons/storysource/package.json index bebcf6ea9a84..7b359a71107e 100644 --- a/addons/storysource/package.json +++ b/addons/storysource/package.json @@ -36,7 +36,6 @@ "@storybook/router": "6.1.1", "@storybook/source-loader": "6.1.1", "@storybook/theming": "6.1.1", - "core-js": "^3.0.1", "estraverse": "^4.2.0", "loader-utils": "^2.0.0", "prettier": "~2.0.5", diff --git a/addons/toolbars/package.json b/addons/toolbars/package.json index 47900b5318b8..97e30a89b9c5 100644 --- a/addons/toolbars/package.json +++ b/addons/toolbars/package.json @@ -33,8 +33,7 @@ "@storybook/addons": "6.1.1", "@storybook/api": "6.1.1", "@storybook/client-api": "6.1.1", - "@storybook/components": "6.1.1", - "core-js": "^3.0.1" + "@storybook/components": "6.1.1" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0", diff --git a/addons/viewport/package.json b/addons/viewport/package.json index 46a53e8020b1..7b1d3326694b 100644 --- a/addons/viewport/package.json +++ b/addons/viewport/package.json @@ -35,7 +35,6 @@ "@storybook/components": "6.1.1", "@storybook/core-events": "6.1.1", "@storybook/theming": "6.1.1", - "core-js": "^3.0.1", "global": "^4.3.2", "memoizerific": "^1.11.3", "prop-types": "^15.7.2", diff --git a/app/ember/package.json b/app/ember/package.json index 2b1c0dab3dba..435f77703b68 100644 --- a/app/ember/package.json +++ b/app/ember/package.json @@ -33,7 +33,6 @@ "dependencies": { "@ember/test-helpers": "^1.7.0", "@storybook/core": "6.1.1", - "core-js": "^3.0.1", "global": "^4.3.2", "react": "16.13.1", "react-dom": "16.13.1", diff --git a/app/html/package.json b/app/html/package.json index 36c5b30fe5d7..cf80cbb6064f 100644 --- a/app/html/package.json +++ b/app/html/package.json @@ -38,7 +38,6 @@ "@storybook/client-api": "6.1.1", "@storybook/core": "6.1.1", "@types/webpack-env": "^1.15.3", - "core-js": "^3.0.1", "global": "^4.3.2", "html-loader": "^1.0.0", "react": "16.13.1", diff --git a/app/marionette/package.json b/app/marionette/package.json index 1ea9a1c2cc3c..1b8fc92ac649 100644 --- a/app/marionette/package.json +++ b/app/marionette/package.json @@ -27,7 +27,6 @@ "dependencies": { "@storybook/core": "6.1.1", "common-tags": "^1.8.0", - "core-js": "^3.0.1", "global": "^4.3.2", "html-loader": "^1.0.0", "react": "16.13.1", diff --git a/app/marko/package.json b/app/marko/package.json index 310bfe44ae71..1e16a2e06d2d 100644 --- a/app/marko/package.json +++ b/app/marko/package.json @@ -36,7 +36,6 @@ "@marko/webpack": "^6.2.8", "@storybook/client-logger": "6.1.1", "@storybook/core": "6.1.1", - "core-js": "^3.0.1", "global": "^4.3.2", "react": "16.13.1", "react-dom": "16.13.1", diff --git a/app/mithril/package.json b/app/mithril/package.json index b6d769b2e544..d10c9c36aede 100644 --- a/app/mithril/package.json +++ b/app/mithril/package.json @@ -40,7 +40,6 @@ "@storybook/core": "6.1.1", "@types/mithril": "^2.0.0", "@types/webpack-env": "^1.15.3", - "core-js": "^3.0.1", "global": "^4.3.2", "react": "16.13.1", "react-dom": "16.13.1", diff --git a/app/preact/package.json b/app/preact/package.json index a210063a8d7e..33358e7d6017 100644 --- a/app/preact/package.json +++ b/app/preact/package.json @@ -38,7 +38,6 @@ "@storybook/addons": "6.1.1", "@storybook/core": "6.1.1", "@types/webpack-env": "^1.15.3", - "core-js": "^3.0.1", "global": "^4.3.2", "react": "16.13.1", "react-dom": "16.13.1", diff --git a/app/rax/package.json b/app/rax/package.json index 3c0df63adcbe..c1533a061976 100644 --- a/app/rax/package.json +++ b/app/rax/package.json @@ -36,7 +36,6 @@ "dependencies": { "@storybook/core": "6.1.1", "babel-preset-rax": "^1.0.0-beta.0", - "core-js": "^3.0.1", "driver-dom": "^2.0.0", "global": "^4.3.2", "react": "16.13.1", diff --git a/app/react/package.json b/app/react/package.json index 586faa5fc273..207973cf238d 100644 --- a/app/react/package.json +++ b/app/react/package.json @@ -46,7 +46,6 @@ "babel-plugin-add-react-displayname": "^0.0.5", "babel-plugin-named-asset-import": "^0.3.1", "babel-plugin-react-docgen": "^4.2.1", - "core-js": "^3.0.1", "global": "^4.3.2", "lodash": "^4.17.15", "prop-types": "^15.7.2", diff --git a/app/riot/package.json b/app/riot/package.json index b7ef8287f685..35259443df3e 100644 --- a/app/riot/package.json +++ b/app/riot/package.json @@ -35,7 +35,6 @@ }, "dependencies": { "@storybook/core": "6.1.1", - "core-js": "^3.0.1", "global": "^4.3.2", "raw-loader": "^4.0.1", "react": "16.13.1", diff --git a/app/server/package.json b/app/server/package.json index 58b7702a2f9a..25901ce6de91 100644 --- a/app/server/package.json +++ b/app/server/package.json @@ -40,7 +40,6 @@ "@storybook/core": "6.1.1", "@storybook/node-logger": "6.1.1", "@types/webpack-env": "^1.15.3", - "core-js": "^3.0.1", "global": "^4.3.2", "react": "16.13.1", "react-dom": "16.13.1", diff --git a/app/svelte/package.json b/app/svelte/package.json index ca307bd9041b..90f3aa9a62ce 100644 --- a/app/svelte/package.json +++ b/app/svelte/package.json @@ -36,7 +36,6 @@ "dependencies": { "@storybook/addons": "6.1.1", "@storybook/core": "6.1.1", - "core-js": "^3.0.1", "global": "^4.3.2", "react": "16.13.1", "react-dom": "16.13.1", diff --git a/app/vue/package.json b/app/vue/package.json index e6c2d6368d33..dd05e681ef8e 100644 --- a/app/vue/package.json +++ b/app/vue/package.json @@ -37,7 +37,6 @@ "@storybook/addons": "6.1.1", "@storybook/core": "6.1.1", "@types/webpack-env": "^1.15.3", - "core-js": "^3.0.1", "global": "^4.3.2", "react": "16.13.1", "react-dom": "16.13.1", diff --git a/dev-kits/addon-decorator/package.json b/dev-kits/addon-decorator/package.json index beca1044d2f6..b354eb10be6a 100644 --- a/dev-kits/addon-decorator/package.json +++ b/dev-kits/addon-decorator/package.json @@ -26,7 +26,6 @@ "dependencies": { "@storybook/addons": "6.1.1", "@storybook/client-api": "6.1.1", - "core-js": "^3.0.1", "global": "^4.4.0" }, "publishConfig": { diff --git a/dev-kits/addon-parameter/package.json b/dev-kits/addon-parameter/package.json index 7737e08f2cdd..a4456909282b 100644 --- a/dev-kits/addon-parameter/package.json +++ b/dev-kits/addon-parameter/package.json @@ -30,7 +30,6 @@ "@storybook/components": "6.1.1", "@storybook/core-events": "6.1.1", "@storybook/theming": "6.1.1", - "core-js": "^3.0.1", "global": "^4.3.2", "react": "^16.8.0 || ^17.0.0", "ts-dedent": "^2.0.0" diff --git a/dev-kits/addon-roundtrip/package.json b/dev-kits/addon-roundtrip/package.json index 58f298d83447..ebb5159969ac 100644 --- a/dev-kits/addon-roundtrip/package.json +++ b/dev-kits/addon-roundtrip/package.json @@ -31,7 +31,6 @@ "@storybook/components": "6.1.1", "@storybook/core-events": "6.1.1", "@storybook/theming": "6.1.1", - "core-js": "^3.0.1", "global": "^4.3.2", "react": "^16.8.0 || ^17.0.0", "ts-dedent": "^2.0.0" diff --git a/examples/vue-cli/package.json b/examples/vue-cli/package.json index f0f4425f17ea..36d54104c84e 100644 --- a/examples/vue-cli/package.json +++ b/examples/vue-cli/package.json @@ -9,7 +9,6 @@ "storybook": "start-storybook -p 9009" }, "dependencies": { - "core-js": "^3.6.4", "vue": "^2.6.8", "vue-class-component": "^7.2.3", "vue-property-decorator": "^9.0.0" diff --git a/lib/addons/package.json b/lib/addons/package.json index e98e1b150ed9..68019312df63 100644 --- a/lib/addons/package.json +++ b/lib/addons/package.json @@ -34,7 +34,6 @@ "@storybook/core-events": "6.1.1", "@storybook/router": "6.1.1", "@storybook/theming": "6.1.1", - "core-js": "^3.0.1", "global": "^4.3.2", "regenerator-runtime": "^0.13.7" }, diff --git a/lib/api/package.json b/lib/api/package.json index 14d445e96ab7..5836ffd3d228 100644 --- a/lib/api/package.json +++ b/lib/api/package.json @@ -37,7 +37,6 @@ "@storybook/semver": "^7.3.2", "@storybook/theming": "6.1.1", "@types/reach__router": "^1.3.5", - "core-js": "^3.0.1", "fast-deep-equal": "^3.1.1", "global": "^4.3.2", "lodash": "^4.17.15", diff --git a/lib/channel-postmessage/package.json b/lib/channel-postmessage/package.json index bb0ec0bddedd..dcff41452e2f 100644 --- a/lib/channel-postmessage/package.json +++ b/lib/channel-postmessage/package.json @@ -31,7 +31,6 @@ "@storybook/channels": "6.1.1", "@storybook/client-logger": "6.1.1", "@storybook/core-events": "6.1.1", - "core-js": "^3.0.1", "global": "^4.3.2", "qs": "^6.6.0", "telejson": "^5.0.2" diff --git a/lib/channel-websocket/package.json b/lib/channel-websocket/package.json index 74084436fdaa..0ca93b26cb04 100644 --- a/lib/channel-websocket/package.json +++ b/lib/channel-websocket/package.json @@ -29,7 +29,6 @@ }, "dependencies": { "@storybook/channels": "6.1.1", - "core-js": "^3.0.1", "global": "^4.3.2", "telejson": "^5.0.2" }, diff --git a/lib/channels/package.json b/lib/channels/package.json index 994b172640f1..722a7c979bca 100644 --- a/lib/channels/package.json +++ b/lib/channels/package.json @@ -28,7 +28,6 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "core-js": "^3.0.1", "ts-dedent": "^2.0.0", "util-deprecate": "^1.0.2" }, diff --git a/lib/client-api/package.json b/lib/client-api/package.json index 87a4ac73af40..fd0626cb41dd 100644 --- a/lib/client-api/package.json +++ b/lib/client-api/package.json @@ -36,7 +36,6 @@ "@storybook/csf": "0.0.1", "@types/qs": "^6.9.0", "@types/webpack-env": "^1.15.3", - "core-js": "^3.0.1", "global": "^4.3.2", "lodash": "^4.17.15", "memoizerific": "^1.11.3", diff --git a/lib/client-logger/package.json b/lib/client-logger/package.json index 6b9c406a3fbe..80b223b3250c 100644 --- a/lib/client-logger/package.json +++ b/lib/client-logger/package.json @@ -28,7 +28,6 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "core-js": "^3.0.1", "global": "^4.3.2" }, "publishConfig": { diff --git a/lib/codemod/package.json b/lib/codemod/package.json index 7e477f8e5cff..e6d4370c064c 100644 --- a/lib/codemod/package.json +++ b/lib/codemod/package.json @@ -32,7 +32,6 @@ "@mdx-js/mdx": "^1.6.19", "@storybook/csf": "0.0.1", "@storybook/node-logger": "6.1.1", - "core-js": "^3.0.1", "cross-spawn": "^7.0.0", "globby": "^11.0.0", "jscodeshift": "^0.7.0", diff --git a/lib/components/package.json b/lib/components/package.json index 97f8035d46e0..4525a6fad1b5 100644 --- a/lib/components/package.json +++ b/lib/components/package.json @@ -35,7 +35,6 @@ "@types/overlayscrollbars": "^1.9.0", "@types/react-color": "^3.0.1", "@types/react-syntax-highlighter": "11.0.4", - "core-js": "^3.0.1", "fast-deep-equal": "^3.1.1", "global": "^4.3.2", "lodash": "^4.17.15", diff --git a/lib/core-events/package.json b/lib/core-events/package.json index e7dcb5b7b387..ef79ec5ffa3b 100644 --- a/lib/core-events/package.json +++ b/lib/core-events/package.json @@ -28,7 +28,6 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "core-js": "^3.0.1" }, "publishConfig": { "access": "public" diff --git a/lib/node-logger/package.json b/lib/node-logger/package.json index 815d781e6552..9e884545b76b 100644 --- a/lib/node-logger/package.json +++ b/lib/node-logger/package.json @@ -30,7 +30,6 @@ "dependencies": { "@types/npmlog": "^4.1.2", "chalk": "^4.0.0", - "core-js": "^3.0.1", "npmlog": "^4.1.2", "pretty-hrtime": "^1.0.3" }, diff --git a/lib/postinstall/package.json b/lib/postinstall/package.json index 64fe64328c78..288a5b74b58a 100644 --- a/lib/postinstall/package.json +++ b/lib/postinstall/package.json @@ -29,7 +29,6 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "core-js": "^3.0.1" }, "devDependencies": { "@hypnosphi/jscodeshift": "^0.6.4", diff --git a/lib/router/package.json b/lib/router/package.json index 2d4da013a6f4..ded5ba5f7964 100644 --- a/lib/router/package.json +++ b/lib/router/package.json @@ -30,7 +30,6 @@ "dependencies": { "@reach/router": "^1.3.3", "@types/reach__router": "^1.3.5", - "core-js": "^3.0.1", "global": "^4.3.2", "memoizerific": "^1.11.3", "qs": "^6.6.0" diff --git a/lib/source-loader/package.json b/lib/source-loader/package.json index ab54cc25e1a3..d6dabe497d98 100644 --- a/lib/source-loader/package.json +++ b/lib/source-loader/package.json @@ -32,7 +32,6 @@ "@storybook/addons": "6.1.1", "@storybook/client-logger": "6.1.1", "@storybook/csf": "0.0.1", - "core-js": "^3.0.1", "estraverse": "^4.2.0", "global": "^4.3.2", "loader-utils": "^2.0.0", diff --git a/lib/theming/package.json b/lib/theming/package.json index f72ed9c39ab8..1b8eaf43b689 100644 --- a/lib/theming/package.json +++ b/lib/theming/package.json @@ -32,7 +32,6 @@ "@emotion/is-prop-valid": "^0.8.6", "@emotion/styled": "^10.0.23", "@storybook/client-logger": "6.1.1", - "core-js": "^3.0.1", "deep-object-diff": "^1.1.0", "emotion-theming": "^10.0.19", "global": "^4.3.2", From 10d0c9b582b0d2d33467271479a69ed9624d9afd Mon Sep 17 00:00:00 2001 From: 43081j <43081j@users.noreply.github.com> Date: Thu, 19 Nov 2020 20:14:04 +0000 Subject: [PATCH 09/13] pass specific corejs version --- lib/core/src/server/common/babel.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/core/src/server/common/babel.ts b/lib/core/src/server/common/babel.ts index e8a3e1284eb0..009853891de8 100644 --- a/lib/core/src/server/common/babel.ts +++ b/lib/core/src/server/common/babel.ts @@ -35,9 +35,10 @@ export const plugins = [ require.resolve('babel-plugin-polyfill-corejs3'), { method: "usage-global", - absoluteImports: require.resolve('core-js') - } - ] + absoluteImports: require.resolve('core-js'), + version: require('core-js/package.json').version, + }, + ], ]; export const presets = [ From b61166c8471d63b128b383ee9d7b6654f28c8fe7 Mon Sep 17 00:00:00 2001 From: James Garbutt <43081j@users.noreply.github.com> Date: Wed, 25 Nov 2020 08:57:31 +0000 Subject: [PATCH 10/13] run format --- lib/core/src/server/common/babel.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/core/src/server/common/babel.ts b/lib/core/src/server/common/babel.ts index 009853891de8..3c038b0d374f 100644 --- a/lib/core/src/server/common/babel.ts +++ b/lib/core/src/server/common/babel.ts @@ -34,18 +34,16 @@ export const plugins = [ [ require.resolve('babel-plugin-polyfill-corejs3'), { - method: "usage-global", + method: 'usage-global', absoluteImports: require.resolve('core-js'), + // eslint-disable-next-line global-require version: require('core-js/package.json').version, }, ], ]; export const presets = [ - [ - require.resolve('@babel/preset-env'), - { shippedProposals: true }, - ], + [require.resolve('@babel/preset-env'), { shippedProposals: true }], require.resolve('@babel/preset-typescript'), ]; From edd36229786a1bdb3b739da1ef28206919c1b220 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Fri, 27 Nov 2020 13:31:42 +0100 Subject: [PATCH 11/13] Revert "remove all remaining unused core-js dependencies" This reverts commit bedb720044055aa9a12c66a9548e533c82dfac81. --- addons/a11y/package.json | 1 + addons/actions/package.json | 1 + addons/backgrounds/package.json | 1 + addons/controls/package.json | 1 + addons/cssresources/package.json | 1 + addons/design-assets/package.json | 1 + addons/docs/package.json | 1 + addons/essentials/package.json | 1 + addons/events/package.json | 1 + addons/google-analytics/package.json | 1 + addons/graphql/package.json | 1 + addons/jest/package.json | 1 + addons/knobs/package.json | 1 + addons/links/package.json | 1 + addons/queryparams/package.json | 1 + addons/storyshots/storyshots-puppeteer/package.json | 1 + addons/storysource/package.json | 1 + addons/toolbars/package.json | 3 ++- addons/viewport/package.json | 1 + app/ember/package.json | 1 + app/html/package.json | 1 + app/marionette/package.json | 1 + app/marko/package.json | 1 + app/mithril/package.json | 1 + app/preact/package.json | 1 + app/rax/package.json | 1 + app/react/package.json | 1 + app/riot/package.json | 1 + app/server/package.json | 1 + app/svelte/package.json | 1 + app/vue/package.json | 1 + dev-kits/addon-decorator/package.json | 1 + dev-kits/addon-parameter/package.json | 1 + dev-kits/addon-roundtrip/package.json | 1 + examples/vue-cli/package.json | 1 + lib/addons/package.json | 1 + lib/api/package.json | 1 + lib/channel-postmessage/package.json | 1 + lib/channel-websocket/package.json | 1 + lib/channels/package.json | 1 + lib/client-api/package.json | 1 + lib/client-logger/package.json | 1 + lib/codemod/package.json | 1 + lib/components/package.json | 1 + lib/core-events/package.json | 1 + lib/node-logger/package.json | 1 + lib/postinstall/package.json | 1 + lib/router/package.json | 1 + lib/source-loader/package.json | 1 + lib/theming/package.json | 1 + 50 files changed, 51 insertions(+), 1 deletion(-) diff --git a/addons/a11y/package.json b/addons/a11y/package.json index 79bcfbdb9ac0..c725b844a19f 100644 --- a/addons/a11y/package.json +++ b/addons/a11y/package.json @@ -49,6 +49,7 @@ "@storybook/core-events": "6.1.7", "@storybook/theming": "6.1.7", "axe-core": "^4.0.1", + "core-js": "^3.0.1", "global": "^4.3.2", "lodash": "^4.17.15", "react-sizeme": "^2.5.2", diff --git a/addons/actions/package.json b/addons/actions/package.json index efd79c4d57ff..1266d708479f 100644 --- a/addons/actions/package.json +++ b/addons/actions/package.json @@ -41,6 +41,7 @@ "@storybook/components": "6.1.7", "@storybook/core-events": "6.1.7", "@storybook/theming": "6.1.7", + "core-js": "^3.0.1", "fast-deep-equal": "^3.1.1", "global": "^4.3.2", "lodash": "^4.17.15", diff --git a/addons/backgrounds/package.json b/addons/backgrounds/package.json index 78ac4c1ad9f9..5ff0974e4ecc 100644 --- a/addons/backgrounds/package.json +++ b/addons/backgrounds/package.json @@ -45,6 +45,7 @@ "@storybook/components": "6.1.7", "@storybook/core-events": "6.1.7", "@storybook/theming": "6.1.7", + "core-js": "^3.0.1", "global": "^4.3.2", "memoizerific": "^1.11.3", "regenerator-runtime": "^0.13.7", diff --git a/addons/controls/package.json b/addons/controls/package.json index 095fc146c38a..c3231d244221 100644 --- a/addons/controls/package.json +++ b/addons/controls/package.json @@ -36,6 +36,7 @@ "@storybook/components": "6.1.7", "@storybook/node-logger": "6.1.7", "@storybook/theming": "6.1.7", + "core-js": "^3.0.1", "ts-dedent": "^2.0.0" }, "peerDependencies": { diff --git a/addons/cssresources/package.json b/addons/cssresources/package.json index 5bfad767b967..c532de173e33 100644 --- a/addons/cssresources/package.json +++ b/addons/cssresources/package.json @@ -44,6 +44,7 @@ "@storybook/components": "6.1.7", "@storybook/core-events": "6.1.7", "@storybook/theming": "6.1.7", + "core-js": "^3.0.1", "global": "^4.3.2", "regenerator-runtime": "^0.13.7" }, diff --git a/addons/design-assets/package.json b/addons/design-assets/package.json index aed9226a3fcd..eb21dbfda03d 100644 --- a/addons/design-assets/package.json +++ b/addons/design-assets/package.json @@ -47,6 +47,7 @@ "@storybook/components": "6.1.7", "@storybook/core-events": "6.1.7", "@storybook/theming": "6.1.7", + "core-js": "^3.0.1", "global": "^4.3.2", "regenerator-runtime": "^0.13.7", "ts-dedent": "^2.0.0", diff --git a/addons/docs/package.json b/addons/docs/package.json index 16ae77b2c5b5..67ce2f1b7287 100644 --- a/addons/docs/package.json +++ b/addons/docs/package.json @@ -70,6 +70,7 @@ "acorn": "^7.1.0", "acorn-jsx": "^5.1.0", "acorn-walk": "^7.0.0", + "core-js": "^3.0.1", "doctrine": "^3.0.0", "escodegen": "^1.12.0", "fast-deep-equal": "^3.1.1", diff --git a/addons/essentials/package.json b/addons/essentials/package.json index 9afc20d61149..876f160ad00a 100644 --- a/addons/essentials/package.json +++ b/addons/essentials/package.json @@ -44,6 +44,7 @@ "@storybook/addons": "6.1.7", "@storybook/api": "6.1.7", "@storybook/node-logger": "6.1.7", + "core-js": "^3.0.1", "regenerator-runtime": "^0.13.7", "ts-dedent": "^2.0.0" }, diff --git a/addons/events/package.json b/addons/events/package.json index 5c6228a10221..9d1972aaea2c 100644 --- a/addons/events/package.json +++ b/addons/events/package.json @@ -43,6 +43,7 @@ "@storybook/client-api": "6.1.7", "@storybook/core-events": "6.1.7", "@storybook/theming": "6.1.7", + "core-js": "^3.0.1", "format-json": "^1.0.3", "lodash": "^4.17.15", "prop-types": "^15.7.2", diff --git a/addons/google-analytics/package.json b/addons/google-analytics/package.json index 30836f4ac8e3..b2a4a1da1074 100644 --- a/addons/google-analytics/package.json +++ b/addons/google-analytics/package.json @@ -22,6 +22,7 @@ "dependencies": { "@storybook/addons": "6.1.7", "@storybook/core-events": "6.1.7", + "core-js": "^3.0.1", "global": "^4.3.2", "react-ga": "^2.5.7", "regenerator-runtime": "^0.13.7" diff --git a/addons/graphql/package.json b/addons/graphql/package.json index 690f265b359c..110a4dfe5f78 100644 --- a/addons/graphql/package.json +++ b/addons/graphql/package.json @@ -42,6 +42,7 @@ "@storybook/api": "6.1.7", "@types/webpack": "^4.41.24", "babel-loader": "^8.0.6", + "core-js": "^3.0.1", "global": "^4.3.2", "graphiql": "^0.17.5", "graphql": "^15.0.0", diff --git a/addons/jest/package.json b/addons/jest/package.json index 64bdbb86fe18..1488f65e156f 100644 --- a/addons/jest/package.json +++ b/addons/jest/package.json @@ -47,6 +47,7 @@ "@storybook/components": "6.1.7", "@storybook/core-events": "6.1.7", "@storybook/theming": "6.1.7", + "core-js": "^3.0.1", "global": "^4.3.2", "react-sizeme": "^2.5.2", "regenerator-runtime": "^0.13.7", diff --git a/addons/knobs/package.json b/addons/knobs/package.json index d5bd38764878..0e3c09db4aa3 100644 --- a/addons/knobs/package.json +++ b/addons/knobs/package.json @@ -44,6 +44,7 @@ "@storybook/core-events": "6.1.7", "@storybook/theming": "6.1.7", "copy-to-clipboard": "^3.0.8", + "core-js": "^3.0.1", "escape-html": "^1.0.3", "fast-deep-equal": "^3.1.1", "global": "^4.3.2", diff --git a/addons/links/package.json b/addons/links/package.json index f857e1025da4..a88c4d7bc27a 100644 --- a/addons/links/package.json +++ b/addons/links/package.json @@ -42,6 +42,7 @@ "@storybook/csf": "0.0.1", "@storybook/router": "6.1.7", "@types/qs": "^6.9.0", + "core-js": "^3.0.1", "global": "^4.3.2", "prop-types": "^15.7.2", "qs": "^6.6.0", diff --git a/addons/queryparams/package.json b/addons/queryparams/package.json index fd65644f1c0d..342b43bb8405 100644 --- a/addons/queryparams/package.json +++ b/addons/queryparams/package.json @@ -43,6 +43,7 @@ "@storybook/components": "6.1.7", "@storybook/core-events": "6.1.7", "@storybook/theming": "6.1.7", + "core-js": "^3.0.1", "global": "^4.3.2", "qs": "^6.6.0", "regenerator-runtime": "^0.13.7", diff --git a/addons/storyshots/storyshots-puppeteer/package.json b/addons/storyshots/storyshots-puppeteer/package.json index 73175fd2eb5d..20ec9a330970 100644 --- a/addons/storyshots/storyshots-puppeteer/package.json +++ b/addons/storyshots/storyshots-puppeteer/package.json @@ -40,6 +40,7 @@ "@storybook/node-logger": "6.1.7", "@types/jest-image-snapshot": "^2.8.0", "@wordpress/jest-puppeteer-axe": "^1.5.0", + "core-js": "^3.0.1", "jest-image-snapshot": "^4.0.2", "regenerator-runtime": "^0.13.7" }, diff --git a/addons/storysource/package.json b/addons/storysource/package.json index d6d6eabdd26a..d3c0d8ecb673 100644 --- a/addons/storysource/package.json +++ b/addons/storysource/package.json @@ -43,6 +43,7 @@ "@storybook/router": "6.1.7", "@storybook/source-loader": "6.1.7", "@storybook/theming": "6.1.7", + "core-js": "^3.0.1", "estraverse": "^4.2.0", "loader-utils": "^2.0.0", "prettier": "~2.0.5", diff --git a/addons/toolbars/package.json b/addons/toolbars/package.json index 011885550d8e..76c6a839ac8a 100644 --- a/addons/toolbars/package.json +++ b/addons/toolbars/package.json @@ -33,7 +33,8 @@ "@storybook/addons": "6.1.7", "@storybook/api": "6.1.7", "@storybook/client-api": "6.1.7", - "@storybook/components": "6.1.7" + "@storybook/components": "6.1.7", + "core-js": "^3.0.1" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0", diff --git a/addons/viewport/package.json b/addons/viewport/package.json index f73ed90c7b6d..9be9ff7e7d35 100644 --- a/addons/viewport/package.json +++ b/addons/viewport/package.json @@ -42,6 +42,7 @@ "@storybook/components": "6.1.7", "@storybook/core-events": "6.1.7", "@storybook/theming": "6.1.7", + "core-js": "^3.0.1", "global": "^4.3.2", "memoizerific": "^1.11.3", "prop-types": "^15.7.2", diff --git a/app/ember/package.json b/app/ember/package.json index 126c61ad559e..734945e4bf73 100644 --- a/app/ember/package.json +++ b/app/ember/package.json @@ -40,6 +40,7 @@ "dependencies": { "@ember/test-helpers": "^1.7.0", "@storybook/core": "6.1.7", + "core-js": "^3.0.1", "global": "^4.3.2", "react": "16.13.1", "react-dom": "16.13.1", diff --git a/app/html/package.json b/app/html/package.json index bcd9bb244354..6a9a1a1931a2 100644 --- a/app/html/package.json +++ b/app/html/package.json @@ -45,6 +45,7 @@ "@storybook/client-api": "6.1.7", "@storybook/core": "6.1.7", "@types/webpack-env": "^1.15.3", + "core-js": "^3.0.1", "global": "^4.3.2", "html-loader": "^1.0.0", "react": "16.13.1", diff --git a/app/marionette/package.json b/app/marionette/package.json index f79233b9b484..4387e5009c9d 100644 --- a/app/marionette/package.json +++ b/app/marionette/package.json @@ -27,6 +27,7 @@ "dependencies": { "@storybook/core": "6.1.7", "common-tags": "^1.8.0", + "core-js": "^3.0.1", "global": "^4.3.2", "html-loader": "^1.0.0", "react": "16.13.1", diff --git a/app/marko/package.json b/app/marko/package.json index 683698e5352c..a2179379157f 100644 --- a/app/marko/package.json +++ b/app/marko/package.json @@ -43,6 +43,7 @@ "@marko/webpack": "^6.2.8", "@storybook/client-logger": "6.1.7", "@storybook/core": "6.1.7", + "core-js": "^3.0.1", "global": "^4.3.2", "react": "16.13.1", "react-dom": "16.13.1", diff --git a/app/mithril/package.json b/app/mithril/package.json index 5cf1343f9ab1..6c75de346d12 100644 --- a/app/mithril/package.json +++ b/app/mithril/package.json @@ -47,6 +47,7 @@ "@storybook/core": "6.1.7", "@types/mithril": "^2.0.0", "@types/webpack-env": "^1.15.3", + "core-js": "^3.0.1", "global": "^4.3.2", "react": "16.13.1", "react-dom": "16.13.1", diff --git a/app/preact/package.json b/app/preact/package.json index 84260f16da84..59ef392bc91f 100644 --- a/app/preact/package.json +++ b/app/preact/package.json @@ -45,6 +45,7 @@ "@storybook/addons": "6.1.7", "@storybook/core": "6.1.7", "@types/webpack-env": "^1.15.3", + "core-js": "^3.0.1", "global": "^4.3.2", "react": "16.13.1", "react-dom": "16.13.1", diff --git a/app/rax/package.json b/app/rax/package.json index 46b5c2315ec0..2cd8f40c8518 100644 --- a/app/rax/package.json +++ b/app/rax/package.json @@ -43,6 +43,7 @@ "dependencies": { "@storybook/core": "6.1.7", "babel-preset-rax": "^1.0.0-beta.0", + "core-js": "^3.0.1", "driver-dom": "^2.0.0", "global": "^4.3.2", "react": "16.13.1", diff --git a/app/react/package.json b/app/react/package.json index ccea59c93029..4547064b671f 100644 --- a/app/react/package.json +++ b/app/react/package.json @@ -55,6 +55,7 @@ "babel-plugin-add-react-displayname": "^0.0.5", "babel-plugin-named-asset-import": "^0.3.1", "babel-plugin-react-docgen": "^4.2.1", + "core-js": "^3.0.1", "global": "^4.3.2", "lodash": "^4.17.15", "prop-types": "^15.7.2", diff --git a/app/riot/package.json b/app/riot/package.json index 964276aee5d2..7ef8511fd53a 100644 --- a/app/riot/package.json +++ b/app/riot/package.json @@ -42,6 +42,7 @@ }, "dependencies": { "@storybook/core": "6.1.7", + "core-js": "^3.0.1", "global": "^4.3.2", "raw-loader": "^4.0.1", "react": "16.13.1", diff --git a/app/server/package.json b/app/server/package.json index f6aa2f906e19..44d491a53b54 100644 --- a/app/server/package.json +++ b/app/server/package.json @@ -47,6 +47,7 @@ "@storybook/core": "6.1.7", "@storybook/node-logger": "6.1.7", "@types/webpack-env": "^1.15.3", + "core-js": "^3.0.1", "global": "^4.3.2", "react": "16.13.1", "react-dom": "16.13.1", diff --git a/app/svelte/package.json b/app/svelte/package.json index ce82101b3963..9a76b9d875aa 100644 --- a/app/svelte/package.json +++ b/app/svelte/package.json @@ -43,6 +43,7 @@ "dependencies": { "@storybook/addons": "6.1.7", "@storybook/core": "6.1.7", + "core-js": "^3.0.1", "global": "^4.3.2", "react": "16.13.1", "react-dom": "16.13.1", diff --git a/app/vue/package.json b/app/vue/package.json index 898068e76f04..c9c9352e3654 100644 --- a/app/vue/package.json +++ b/app/vue/package.json @@ -44,6 +44,7 @@ "@storybook/addons": "6.1.7", "@storybook/core": "6.1.7", "@types/webpack-env": "^1.15.3", + "core-js": "^3.0.1", "global": "^4.3.2", "react": "16.13.1", "react-dom": "16.13.1", diff --git a/dev-kits/addon-decorator/package.json b/dev-kits/addon-decorator/package.json index 9a829ae3325f..e78f7d806888 100644 --- a/dev-kits/addon-decorator/package.json +++ b/dev-kits/addon-decorator/package.json @@ -26,6 +26,7 @@ "dependencies": { "@storybook/addons": "6.1.7", "@storybook/client-api": "6.1.7", + "core-js": "^3.0.1", "global": "^4.4.0" }, "publishConfig": { diff --git a/dev-kits/addon-parameter/package.json b/dev-kits/addon-parameter/package.json index 375e81b5d366..78c995b75e5d 100644 --- a/dev-kits/addon-parameter/package.json +++ b/dev-kits/addon-parameter/package.json @@ -30,6 +30,7 @@ "@storybook/components": "6.1.7", "@storybook/core-events": "6.1.7", "@storybook/theming": "6.1.7", + "core-js": "^3.0.1", "global": "^4.3.2", "react": "^16.8.0 || ^17.0.0", "ts-dedent": "^2.0.0" diff --git a/dev-kits/addon-roundtrip/package.json b/dev-kits/addon-roundtrip/package.json index 690e0e62aad1..108a159bb611 100644 --- a/dev-kits/addon-roundtrip/package.json +++ b/dev-kits/addon-roundtrip/package.json @@ -31,6 +31,7 @@ "@storybook/components": "6.1.7", "@storybook/core-events": "6.1.7", "@storybook/theming": "6.1.7", + "core-js": "^3.0.1", "global": "^4.3.2", "react": "^16.8.0 || ^17.0.0", "ts-dedent": "^2.0.0" diff --git a/examples/vue-cli/package.json b/examples/vue-cli/package.json index bd0444c57a14..fdde1c8ff38f 100644 --- a/examples/vue-cli/package.json +++ b/examples/vue-cli/package.json @@ -9,6 +9,7 @@ "storybook": "start-storybook -p 9009" }, "dependencies": { + "core-js": "^3.6.4", "vue": "^2.6.8", "vue-class-component": "^7.2.3", "vue-property-decorator": "^9.0.0" diff --git a/lib/addons/package.json b/lib/addons/package.json index 825b6a4991a1..9edd9a92aa1a 100644 --- a/lib/addons/package.json +++ b/lib/addons/package.json @@ -41,6 +41,7 @@ "@storybook/core-events": "6.1.7", "@storybook/router": "6.1.7", "@storybook/theming": "6.1.7", + "core-js": "^3.0.1", "global": "^4.3.2", "regenerator-runtime": "^0.13.7" }, diff --git a/lib/api/package.json b/lib/api/package.json index d73cd85f9d08..f2154227f901 100644 --- a/lib/api/package.json +++ b/lib/api/package.json @@ -44,6 +44,7 @@ "@storybook/semver": "^7.3.2", "@storybook/theming": "6.1.7", "@types/reach__router": "^1.3.5", + "core-js": "^3.0.1", "fast-deep-equal": "^3.1.1", "global": "^4.3.2", "lodash": "^4.17.15", diff --git a/lib/channel-postmessage/package.json b/lib/channel-postmessage/package.json index 0920cfbc819f..a9b3a67e834f 100644 --- a/lib/channel-postmessage/package.json +++ b/lib/channel-postmessage/package.json @@ -38,6 +38,7 @@ "@storybook/channels": "6.1.7", "@storybook/client-logger": "6.1.7", "@storybook/core-events": "6.1.7", + "core-js": "^3.0.1", "global": "^4.3.2", "qs": "^6.6.0", "telejson": "^5.0.2" diff --git a/lib/channel-websocket/package.json b/lib/channel-websocket/package.json index 8c3b4a6fe3cd..b136ab1b333f 100644 --- a/lib/channel-websocket/package.json +++ b/lib/channel-websocket/package.json @@ -36,6 +36,7 @@ }, "dependencies": { "@storybook/channels": "6.1.7", + "core-js": "^3.0.1", "global": "^4.3.2", "telejson": "^5.0.2" }, diff --git a/lib/channels/package.json b/lib/channels/package.json index afbaffb8f440..35d2947da29f 100644 --- a/lib/channels/package.json +++ b/lib/channels/package.json @@ -35,6 +35,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { + "core-js": "^3.0.1", "ts-dedent": "^2.0.0", "util-deprecate": "^1.0.2" }, diff --git a/lib/client-api/package.json b/lib/client-api/package.json index 64cf59415986..b322bb49e608 100644 --- a/lib/client-api/package.json +++ b/lib/client-api/package.json @@ -43,6 +43,7 @@ "@storybook/csf": "0.0.1", "@types/qs": "^6.9.0", "@types/webpack-env": "^1.15.3", + "core-js": "^3.0.1", "global": "^4.3.2", "lodash": "^4.17.15", "memoizerific": "^1.11.3", diff --git a/lib/client-logger/package.json b/lib/client-logger/package.json index 455c66ba3305..ddeb97494278 100644 --- a/lib/client-logger/package.json +++ b/lib/client-logger/package.json @@ -35,6 +35,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { + "core-js": "^3.0.1", "global": "^4.3.2" }, "publishConfig": { diff --git a/lib/codemod/package.json b/lib/codemod/package.json index 9556c67276d8..c7352ca3b2dd 100644 --- a/lib/codemod/package.json +++ b/lib/codemod/package.json @@ -39,6 +39,7 @@ "@mdx-js/mdx": "^1.6.19", "@storybook/csf": "0.0.1", "@storybook/node-logger": "6.1.7", + "core-js": "^3.0.1", "cross-spawn": "^7.0.0", "globby": "^11.0.0", "jscodeshift": "^0.7.0", diff --git a/lib/components/package.json b/lib/components/package.json index a1beafdc032e..685ba392b0a8 100644 --- a/lib/components/package.json +++ b/lib/components/package.json @@ -42,6 +42,7 @@ "@types/overlayscrollbars": "^1.9.0", "@types/react-color": "^3.0.1", "@types/react-syntax-highlighter": "11.0.4", + "core-js": "^3.0.1", "fast-deep-equal": "^3.1.1", "global": "^4.3.2", "lodash": "^4.17.15", diff --git a/lib/core-events/package.json b/lib/core-events/package.json index a20e69d16c4b..a76e7a995ab3 100644 --- a/lib/core-events/package.json +++ b/lib/core-events/package.json @@ -35,6 +35,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { + "core-js": "^3.0.1" }, "publishConfig": { "access": "public" diff --git a/lib/node-logger/package.json b/lib/node-logger/package.json index 275cdfed090e..5b56aa30fdef 100644 --- a/lib/node-logger/package.json +++ b/lib/node-logger/package.json @@ -37,6 +37,7 @@ "dependencies": { "@types/npmlog": "^4.1.2", "chalk": "^4.0.0", + "core-js": "^3.0.1", "npmlog": "^4.1.2", "pretty-hrtime": "^1.0.3" }, diff --git a/lib/postinstall/package.json b/lib/postinstall/package.json index 90d703076d58..9511aeb4df4a 100644 --- a/lib/postinstall/package.json +++ b/lib/postinstall/package.json @@ -36,6 +36,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { + "core-js": "^3.0.1" }, "devDependencies": { "@hypnosphi/jscodeshift": "^0.6.4", diff --git a/lib/router/package.json b/lib/router/package.json index 8d943ed1c06e..1e0cf89016ec 100644 --- a/lib/router/package.json +++ b/lib/router/package.json @@ -37,6 +37,7 @@ "dependencies": { "@reach/router": "^1.3.3", "@types/reach__router": "^1.3.5", + "core-js": "^3.0.1", "global": "^4.3.2", "memoizerific": "^1.11.3", "qs": "^6.6.0" diff --git a/lib/source-loader/package.json b/lib/source-loader/package.json index 5c4dbeecbcf4..e88b22520ab5 100644 --- a/lib/source-loader/package.json +++ b/lib/source-loader/package.json @@ -39,6 +39,7 @@ "@storybook/addons": "6.1.7", "@storybook/client-logger": "6.1.7", "@storybook/csf": "0.0.1", + "core-js": "^3.0.1", "estraverse": "^4.2.0", "global": "^4.3.2", "loader-utils": "^2.0.0", diff --git a/lib/theming/package.json b/lib/theming/package.json index 344b104ee2da..832f817e7b32 100644 --- a/lib/theming/package.json +++ b/lib/theming/package.json @@ -39,6 +39,7 @@ "@emotion/is-prop-valid": "^0.8.6", "@emotion/styled": "^10.0.23", "@storybook/client-logger": "6.1.7", + "core-js": "^3.0.1", "deep-object-diff": "^1.1.0", "emotion-theming": "^10.0.19", "global": "^4.3.2", From 944cb08407493c4edcb5809dab41ed81ad8ccd81 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Fri, 27 Nov 2020 13:40:11 +0100 Subject: [PATCH 12/13] remove extraDep from vue example --- scripts/run-e2e-config.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/scripts/run-e2e-config.ts b/scripts/run-e2e-config.ts index b7570236a0a3..e3c5bbe90ea6 100644 --- a/scripts/run-e2e-config.ts +++ b/scripts/run-e2e-config.ts @@ -140,11 +140,6 @@ export const sfcVue: Parameters = { name: 'sfcVue', version: 'latest', generator: fromDeps('vue', 'vue-loader', 'vue-template-compiler', 'webpack@webpack-4'), - additionalDeps: [ - // FIXME: We still have issue with react as peer/regular deps... - // For some details see: https://github.com/storybookjs/storybook/pull/13059/commits/8d4938bc4aef55e208a89f3547674c64ed39d3b3#r520101039 - 'react', - ], }; export const svelte: Parameters = { From 9f2dde86b20b5b949b6db26fe0c65dc11880790e Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Fri, 27 Nov 2020 15:46:32 +0100 Subject: [PATCH 13/13] remove preset-env preset options conflicting with the new babel plugin to add core-js dependecies --- lib/core/src/server/common/es6Transpiler.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/core/src/server/common/es6Transpiler.ts b/lib/core/src/server/common/es6Transpiler.ts index 436f97bc1da1..930c09a94b1f 100644 --- a/lib/core/src/server/common/es6Transpiler.ts +++ b/lib/core/src/server/common/es6Transpiler.ts @@ -13,10 +13,7 @@ export const es6Transpiler: () => RuleSetRule = () => { options: { sourceType: 'unambiguous', presets: [ - [ - require.resolve('@babel/preset-env'), - { shippedProposals: true, useBuiltIns: 'usage', corejs: '3' }, - ], + [require.resolve('@babel/preset-env'), { shippedProposals: true }], require.resolve('@babel/preset-react'), ], plugins,