Skip to content

Commit

Permalink
fix: type error when use builtins:swc-loader and disableTransformByDe…
Browse files Browse the repository at this point in the history
…fault (#4256)
  • Loading branch information
JSerFeng authored Sep 27, 2023
1 parent 143f21b commit 8819ada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rspack-dev-server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export class RspackDevServer extends WebpackDevServer {
});
}
}
} else if (compiler.options.builtins.react.refresh) {
} else if (compiler.options.builtins.react?.refresh) {
if (mode === "production") {
this.logger.warn(
"React Refresh runtime should not be included in the production bundle.\n" +
Expand Down

0 comments on commit 8819ada

Please sign in to comment.