Skip to content

Commit

Permalink
chore: bump @storybook/addon-webpack5-compiler-swc from 1.0.5 to 2.0.0 (
Browse files Browse the repository at this point in the history
nodejs#7388)

chore: update SWC configuration for TypeScript support & bump addon-webpack5-compiler-swc
  • Loading branch information
mikeesto authored Jan 7, 2025
1 parent b417a64 commit 90719ac
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
14 changes: 13 additions & 1 deletion apps/site/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,19 @@ const config: StorybookConfig = {
typescript: { reactDocgen: false, check: false },
core: { disableTelemetry: true, disableWhatsNewNotifications: true },
framework: '@storybook/react-webpack5',
swc: () => ({ jsc: { transform: { react: { runtime: 'automatic' } } } }),
swc: () => ({
jsc: {
parser: {
syntax: 'typescript',
tsx: true,
},
transform: {
react: {
runtime: 'automatic',
},
},
},
}),
addons: [
'@storybook/addon-webpack5-compiler-swc',
'@storybook/addon-controls',
Expand Down
2 changes: 1 addition & 1 deletion apps/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"@storybook/addon-styling-webpack": "^1.0.1",
"@storybook/addon-themes": "^8.4.6",
"@storybook/addon-viewport": "^8.4.6",
"@storybook/addon-webpack5-compiler-swc": "^1.0.5",
"@storybook/addon-webpack5-compiler-swc": "^2.0.0",
"@storybook/react-webpack5": "^8.4.6",
"@testing-library/jest-dom": "~6.6.3",
"@testing-library/react": "~16.1.0",
Expand Down
9 changes: 4 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 90719ac

Please sign in to comment.