Skip to content

Commit

Permalink
pre-optimize internal modules
Browse files Browse the repository at this point in the history
  • Loading branch information
JReinhold committed Dec 18, 2024
1 parent b5a0c34 commit 8f1be22
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/compiler/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ export async function transformPlugin(): Promise<Plugin> {

return {
name: 'storybook:addon-svelte-csf',
config() {
return {
optimizeDeps: {
include: ['@storybook/addon-svelte-csf/internal/create-runtime-stories'],
}
}
},
async transform(compiledCode, id) {
if (!filter(id)) return undefined;

Expand Down

0 comments on commit 8f1be22

Please sign in to comment.