Skip to content

Commit

Permalink
fix: missing rspack-only plugins on compiler.webpack (#4223)
Browse files Browse the repository at this point in the history
fix: missing rspack-only plugins in compiler.webpack
  • Loading branch information
ahabhgk authored Sep 20, 2023
1 parent 0e76a01 commit 1a31b69
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/rspack/src/Compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,19 @@ class Compiler {
// get LazySet() {
// return require("./util/LazySet");
// }
},
// XxxRspackPlugin, Rspack-only plugins
get HtmlRspackPlugin() {
return require("./builtin-plugin").HtmlRspackPlugin;
},
get SwcJsMinimizerRspackPlugin() {
return require("./builtin-plugin").SwcJsMinimizerRspackPlugin;
},
get SwcCssMinimizerRspackPlugin() {
return require("./builtin-plugin").SwcCssMinimizerRspackPlugin;
},
get CopyRspackPlugin() {
return require("./builtin-plugin").CopyRspackPlugin;
}
};
this.root = this;
Expand Down

0 comments on commit 1a31b69

Please sign in to comment.