Skip to content

Commit e95cd28

Browse files
committed
fix: wire up Babel compiler addon and automatic JSX runtime for Storybook v10
1 parent f5e1341 commit e95cd28

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.storybook/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const config: StorybookConfig = {
55
'../src/**/*.stories.@(js|jsx|ts|tsx)',
66
'../src/stories/stories.tsx',
77
],
8-
addons: ['@storybook/addon-essentials'],
8+
addons: ['@storybook/addon-webpack5-compiler-babel'],
99
framework: {
1010
name: '@storybook/react-webpack5',
1111
options: {},

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
presets: [
33
'@babel/preset-env',
4-
'@babel/preset-react',
4+
['@babel/preset-react', { runtime: 'automatic' }],
55
'@babel/preset-typescript',
66
],
77
};

0 commit comments

Comments
 (0)