Skip to content

Commit

Permalink
fix: Include remove default export in plugin transform steps
Browse files Browse the repository at this point in the history
  • Loading branch information
xeho91 committed May 29, 2024
1 parent 4610d8d commit f4e52bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/compiler/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { preprocess } from 'svelte/compiler';
import type { Plugin } from 'vite';

import { createAppendix } from './transform/compiled/create-appendix.js';
import { removeExportDefault } from './transform/compiled/remove-export-default.js';
import { insertDefineMetaJSDocCommentAsDescription } from './transform/define-meta/description.js';
import { destructureMetaFromDefineMeta } from './transform/define-meta/destructure-meta.js';
import { insertStoryHTMLCommentAsDescription } from './transform/Story/description.js';
Expand Down Expand Up @@ -103,6 +104,11 @@ export async function plugin(): Promise<Plugin> {
},
filename,
});
removeExportDefault({
code,
nodes: compiledNodes,
filename,
});
await createAppendix({
componentName,
code,
Expand Down

0 comments on commit f4e52bc

Please sign in to comment.