mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 14:01:16 +08:00
20 lines
389 B
JavaScript
20 lines
389 B
JavaScript
export default config => ({
|
|
...config,
|
|
module: {
|
|
...config.module,
|
|
rules: [
|
|
...config.module.rules,
|
|
{
|
|
test: /\.(svelte|html)$/,
|
|
loader: require.resolve('svelte-loader'),
|
|
options: {},
|
|
},
|
|
],
|
|
},
|
|
resolve: {
|
|
...config.resolve,
|
|
extensions: [...config.resolve.extensions, '.svelte'],
|
|
alias: config.resolve.alias,
|
|
},
|
|
});
|