Skip to content

Commit

Permalink
fix: polyfill storybook webpack node deps
Browse files Browse the repository at this point in the history
  • Loading branch information
alexp3y authored and kyranjamie committed Nov 11, 2024
1 parent e464419 commit 4ffef3b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ const config: StorybookConfig = {
},
webpackFinal: config => {
config.resolve ??= {};
config.resolve.fallback ??= {};
config.resolve.fallback = {
...config.resolve.fallback,
os: require.resolve('os-browserify/browser'),
};
config.resolve.plugins ??= [];
config.resolve.plugins.push(
new TsconfigPathsPlugin({
Expand Down

0 comments on commit 4ffef3b

Please sign in to comment.