Skip to content

Commit

Permalink
Upgrade Storybook to 8.0.0-rc.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuth committed Mar 5, 2024
1 parent 7eb56a2 commit d063a34
Show file tree
Hide file tree
Showing 4 changed files with 776 additions and 2,270 deletions.
26 changes: 16 additions & 10 deletions demo/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
module.exports = {
stories: ["../src"],
addons: ["@storybook/addon-essentials", "@storybook/addon-a11y"],
addons: [
"@storybook/addon-a11y",
"@storybook/addon-essentials",
"@storybook/addon-webpack5-compiler-swc",
],
core: {
disableTelemetry: true
disableTelemetry: true,
},
framework: {
name: "@storybook/react-webpack5",
options: {}
},
// Provide basic babel config. react-webpack5 seems to actually provide most of this.
babel: (config) => {
return {
...config,
sourceType: 'module',
}
options: {},
},
swc: () => ({
jsc: {
transform: {
react: {
runtime: 'automatic',
},
},
},
}),
};
11 changes: 6 additions & 5 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@storybook/addon-a11y": "^7.6.13",
"@storybook/addon-essentials": "^7.6.13",
"@storybook/react": "^7.6.13",
"@storybook/react-webpack5": "^7.6.13",
"storybook": "^7.6.13"
"@storybook/addon-a11y": "^8.0.0-rc.1",
"@storybook/addon-essentials": "^8.0.0-rc.1",
"@storybook/addon-webpack5-compiler-swc": "^1.0.1",
"@storybook/react": "^8.0.0-rc.1",
"@storybook/react-webpack5": "^8.0.0-rc.1",
"storybook": "^8.0.0-rc.1"
}
}
Loading

0 comments on commit d063a34

Please sign in to comment.