Skip to content

Commit

Permalink
fix: Using bundleCommand instead of createCompiler in webpack-cli/ser…
Browse files Browse the repository at this point in the history
…ve to fix issue#1918
  • Loading branch information
Abhimanyu Singh committed Dec 28, 2020
1 parent 952a188 commit 34c2f76
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 34c2f76

Please sign in to comment.