Skip to content

Commit

Permalink
fix(storybook): Add fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
krzotki committed Nov 18, 2024
1 parent e990858 commit 0a8ad8c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ module.exports = {
...config.resolve,
extensions: ['.mjs', '.ts', '.tsx', '.js', '.jsx'],
plugins: [...(config.resolve.plugins ?? []), tsPaths],
fallback: {
...(config.resolve || {}).fallback,
fs: false,
stream: false,
os: false,
zlib: false
},
},
module: {
...config.module,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ module.exports = {
...config.resolve,
extensions: ['.mjs', '.ts', '.tsx', '.js', '.jsx'],
plugins: [...(config.resolve.plugins ?? []), tsPaths],
fallback: {
...(config.resolve || {}).fallback,
fs: false,
stream: false,
os: false,
zlib: false
},
},
module: {
...config.module,
Expand Down

0 comments on commit 0a8ad8c

Please sign in to comment.