Skip to content

Commit

Permalink
fix: using bundleCommand in webpack-cli/serve to fix issue#1918
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhimanyu Singh committed Dec 28, 2020
1 parent 952a188 commit 5c317c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/serve/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class ServeCommand {

webpackOptions.env = { WEBPACK_SERVE: true, ...options.env };

const compiler = await cli.createCompiler(webpackOptions);
const compiler = await cli.bundleCommand(webpackOptions);

if (!compiler) {
return;
Expand Down

0 comments on commit 5c317c8

Please sign in to comment.