Skip to content

Commit

Permalink
Merge pull request #248 from storybookjs/optimizedeps
Browse files Browse the repository at this point in the history
Pre-optimize internal modules
  • Loading branch information
JReinhold authored Dec 18, 2024
2 parents b5a0c34 + 8f1be22 commit 93e6758
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 93e6758

Please sign in to comment.