From c0d332b83c5a510fd04a591956bd1e3e9f3facc4 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Thu, 16 May 2024 23:16:07 +0200 Subject: [PATCH] Install `@storybook/addon-webpack5-compiler-babel` --- .storybook/main.cjs | 1 + package-lock.json | 14 ++++++++++++++ package.json | 1 + 3 files changed, 16 insertions(+) diff --git a/.storybook/main.cjs b/.storybook/main.cjs index 624a0bff54f8..bb00ee9d73c4 100644 --- a/.storybook/main.cjs +++ b/.storybook/main.cjs @@ -65,6 +65,7 @@ module.exports = { toolbars: true, }, }, + '@storybook/addon-webpack5-compiler-babel', ], framework: { name: '@storybook/react-webpack5', diff --git a/package-lock.json b/package-lock.json index 9e5a0f72b046..b28c6bbc496d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -40,6 +40,7 @@ "@storybook/addon-essentials": "^8.1.1", "@storybook/addon-links": "^8.1.1", "@storybook/addon-viewport": "^8.1.1", + "@storybook/addon-webpack5-compiler-babel": "^3.0.3", "@storybook/client-api": "^7.6.17", "@storybook/client-logger": "^8.1.1", "@storybook/csf": "^0.1.2", @@ -6627,6 +6628,19 @@ "url": "https://opencollective.com/storybook" } }, + "node_modules/@storybook/addon-webpack5-compiler-babel": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@storybook/addon-webpack5-compiler-babel/-/addon-webpack5-compiler-babel-3.0.3.tgz", + "integrity": "sha512-rVQTTw+oxJltbVKaejIWSHwVKOBJs3au21f/pYXhV0aiNgNhxEa3vr79t/j0j8ox8uJtzM8XYOb7FlkvGfHlwQ==", + "dev": true, + "dependencies": { + "@babel/core": "^7.23.7", + "babel-loader": "^9.1.3" + }, + "engines": { + "node": ">=18" + } + }, "node_modules/@storybook/blocks": { "version": "8.1.1", "resolved": "https://registry.npmjs.org/@storybook/blocks/-/blocks-8.1.1.tgz", diff --git a/package.json b/package.json index ea3e97715ce4..455683a000c1 100644 --- a/package.json +++ b/package.json @@ -64,6 +64,7 @@ "@storybook/addon-essentials": "^8.1.1", "@storybook/addon-links": "^8.1.1", "@storybook/addon-viewport": "^8.1.1", + "@storybook/addon-webpack5-compiler-babel": "^3.0.3", "@storybook/client-api": "^7.6.17", "@storybook/client-logger": "^8.1.1", "@storybook/csf": "^0.1.2",