From 4e1782d3e295936ce4bfd4e64f5b62698fec90e3 Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Thu, 6 Oct 2022 22:56:28 -0400 Subject: [PATCH] Build: Make babel-loader optional --- code/addons/docs/package.json | 6 +++++- code/renderers/vue/package.json | 5 +++++ code/renderers/vue3/package.json | 5 +++++ code/yarn.lock | 9 +++++++++ 4 files changed, 24 insertions(+), 1 deletion(-) diff --git a/code/addons/docs/package.json b/code/addons/docs/package.json index 3b0993c42c35..25b5395e4c2f 100644 --- a/code/addons/docs/package.json +++ b/code/addons/docs/package.json @@ -69,7 +69,6 @@ "@storybook/source-loader": "7.0.0-alpha.35", "@storybook/store": "7.0.0-alpha.35", "@storybook/theming": "7.0.0-alpha.35", - "babel-loader": "^8.2.5", "dequal": "^2.0.2", "global": "^4.4.0", "lodash": "^4.17.21", @@ -82,10 +81,12 @@ "@babel/core": "^7.12.10", "@storybook/mdx2-csf": "0.0.4-canary.14.04ffbe8.0", "@types/util-deprecate": "^1.0.0", + "babel-loader": "^8.2.5", "typescript": "~4.6.3" }, "peerDependencies": { "@storybook/mdx2-csf": "0.0.4-canary.14.04ffbe8.0", + "babel-loader": "^8.2.5", "react": "^16.8.0 || ^17.0.0 || ^18.0.0", "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" }, @@ -93,6 +94,9 @@ "@storybook/mdx2-csf": { "optional": true }, + "babel-loader": { + "optional": true + }, "react": { "optional": true }, diff --git a/code/renderers/vue/package.json b/code/renderers/vue/package.json index b00facaaa4d0..6715a2caeba4 100644 --- a/code/renderers/vue/package.json +++ b/code/renderers/vue/package.json @@ -71,6 +71,11 @@ "css-loader": "*", "vue": "^2.6.8" }, + "peerDependenciesMeta": { + "babel-loader": { + "optional": true + } + }, "engines": { "node": ">=10.13.0" }, diff --git a/code/renderers/vue3/package.json b/code/renderers/vue3/package.json index 776b9f50d8a6..2072ccb6e724 100644 --- a/code/renderers/vue3/package.json +++ b/code/renderers/vue3/package.json @@ -70,6 +70,11 @@ "babel-loader": "^7.0.0 || ^8.0.0", "vue": "^3.0.0" }, + "peerDependenciesMeta": { + "babel-loader": { + "optional": true + } + }, "engines": { "node": ">=10.13.0" }, diff --git a/code/yarn.lock b/code/yarn.lock index c69f79916ee1..9618adeae1e0 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -6597,11 +6597,14 @@ __metadata: util-deprecate: ^1.0.2 peerDependencies: "@storybook/mdx2-csf": 0.0.4-canary.14.04ffbe8.0 + babel-loader: ^8.2.5 react: ^16.8.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 peerDependenciesMeta: "@storybook/mdx2-csf": optional: true + babel-loader: + optional: true react: optional: true react-dom: @@ -9168,6 +9171,9 @@ __metadata: "@babel/core": "*" babel-loader: ^7.0.0 || ^8.0.0 vue: ^3.0.0 + peerDependenciesMeta: + babel-loader: + optional: true languageName: unknown linkType: soft @@ -9192,6 +9198,9 @@ __metadata: babel-loader: ^7.0.0 || ^8.0.0 css-loader: "*" vue: ^2.6.8 + peerDependenciesMeta: + babel-loader: + optional: true languageName: unknown linkType: soft