mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-28 11:31:55 +02: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:
@@ -85,6 +85,16 @@ const config: StorybookConfig = {
|
||||
'@': path.join(rootDir, 'frontend/js/'),
|
||||
},
|
||||
},
|
||||
module: {
|
||||
...storybookConfig.module,
|
||||
rules: (storybookConfig.module?.rules ?? []).concat({
|
||||
test: /\.wasm$/,
|
||||
type: 'asset/resource',
|
||||
generator: {
|
||||
filename: 'js/[name]-[contenthash][ext]',
|
||||
},
|
||||
}),
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user