We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8ffed0 commit e6ef4a9Copy full SHA for e6ef4a9
1 file changed
src/index.ts
@@ -68,8 +68,9 @@ export const unpluginFactory: UnpluginFactory<Options | undefined> = (options =
68
compiler = await createCompiler(validated.config)
69
buildQueue = new BuildQueue(compiler)
70
},
71
- async buildEnd() {
72
- // ensure the process exits when the build is finished
+ async closeBundle() {
+ // Use closeBundle instead of buildEnd to ensure all output files
73
+ // (including iframe.html in Storybook builds) are written before exiting
74
process.exit(0)
75
76
/**
0 commit comments