Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 93e6758

Browse files
authoredDec 18, 2024··
Merge pull request #248 from storybookjs/optimizedeps
Pre-optimize internal modules
2 parents b5a0c34 + 8f1be22 commit 93e6758

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)
Please sign in to comment.