Skip to content

Commit e94d682

Browse files
committed
fix: When 'pnpm run dev' is executed, the manifest.json is not output to the dist directory
#16
1 parent c36679f commit e94d682

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/chatty-bobcats-shop.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"rsbuild-plugin-web-extension": patch
3+
---
4+
5+
fix: When 'pnpm run dev' is executed, the manifest.json is not output to the dist directory

packages/rsbuild-plugin-web-extension/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export const pluginWebExtension = ({ manifest }: Options): RsbuildPlugin => ({
8080
});
8181
});
8282

83-
api.onAfterBuild(() => {
83+
api.onAfterCreateCompiler(() => {
8484
makeManifest(manifest, api.context.distPath);
8585
});
8686
},

0 commit comments

Comments
 (0)