Skip to content

Commit 8f1be22

Browse files
committed
pre-optimize internal modules
1 parent b5a0c34 commit 8f1be22

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/compiler/plugins.ts

+7
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ export async function transformPlugin(): Promise<Plugin> {
6969

7070
return {
7171
name: 'storybook:addon-svelte-csf',
72+
config() {
73+
return {
74+
optimizeDeps: {
75+
include: ['@storybook/addon-svelte-csf/internal/create-runtime-stories'],
76+
}
77+
}
78+
},
7279
async transform(compiledCode, id) {
7380
if (!filter(id)) return undefined;
7481

0 commit comments

Comments
 (0)