Skip to content

Commit 344b691

Browse files
l0o0claude
andauthored
fix(build): add missing await for buildInProduction() (#160)
`buildInProduction()` is an async method that packs the XPI and generates update.json. Without `await`, the build process completes before the XPI file is actually written, resulting in no XPI output in production builds. Co-authored-by: Claude Opus 4.6 <[email protected]>
1 parent d0bba34 commit 344b691

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/builder/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default class Build extends Base {
4242

4343
if (process.env.NODE_ENV === "production") {
4444
this.logger.tip("Packing plugin", { space: 1 });
45-
this.buildInProduction();
45+
await this.buildInProduction();
4646
}
4747

4848
await this.ctx.hooks.callHook("build:done", this.ctx);

0 commit comments

Comments
 (0)