mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #20926 from overleaf/ae-storybook-wasm
Add Storybook webpack config for wasm files GitOrigin-RevId: a5e0e3b6af7865c3f8285c9b7bef8a4efae3a55b
This commit is contained in:
parent
92eade7502
commit
874c0211d7
1 changed files with 10 additions and 0 deletions
|
@ -85,6 +85,16 @@ const config: StorybookConfig = {
|
||||||
'@': path.join(rootDir, 'frontend/js/'),
|
'@': path.join(rootDir, 'frontend/js/'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
module: {
|
||||||
|
...storybookConfig.module,
|
||||||
|
rules: (storybookConfig.module?.rules ?? []).concat({
|
||||||
|
test: /\.wasm$/,
|
||||||
|
type: 'asset/resource',
|
||||||
|
generator: {
|
||||||
|
filename: 'js/[name]-[contenthash][ext]',
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue