Skip to content

Commit

Permalink
fix: set preBundle to false when mode is not development
Browse files Browse the repository at this point in the history
  • Loading branch information
liximomo committed Aug 4, 2022
1 parent 521820a commit ae6f55f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/service/src/bundler/bundler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ export async function getBundler(ctx: IPluginContext): Promise<Bunlder> {
await setupTypeScript(ctx.paths);
const options = { ...defaultBundleOptions };
if (ctx.mode !== 'development') {
options.preBundle = true;
options.preBundle = false;
}
const bundler = new WebpackBundler(options, ctx);
await bundler.init();
Expand Down

0 comments on commit ae6f55f

Please sign in to comment.