Skip to content

Commit

Permalink
useSWC
Browse files Browse the repository at this point in the history
  • Loading branch information
victortrinh2 committed Nov 18, 2024
1 parent 1fcda1f commit f4deff4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,14 @@ const storybookConfig: StorybookConfig = {
"@storybook/addon-webpack5-compiler-swc",
"@chromatic-com/storybook"
],
framework: "@storybook/react-webpack5",
framework: {
name: "@storybook/react-webpack5",
options: {
builder: {
useSWC: true
}
}
},
core: {
builder: {
name: "@storybook/builder-webpack5",
Expand Down Expand Up @@ -86,7 +93,6 @@ const storybookConfig: StorybookConfig = {
]
};
config.devtool = false;
config.optimization.minimize = false;

config.plugins = [
...(config.plugins ?? []),
Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[build.environment]
NODE_VERSION = "22.11"
NODE_OPTIONS = "--max-old-space-size=16384"
NODE_OPTIONS = "--max-old-space-size=2048"

0 comments on commit f4deff4

Please sign in to comment.