From 22626e1f2b104f6cc798eb554cabab3c204de383 Mon Sep 17 00:00:00 2001 From: ahabhgk Date: Wed, 20 Sep 2023 15:38:44 +0800 Subject: [PATCH] fix: missing rspack-only plugins in compiler.webpack --- packages/rspack/src/Compiler.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/rspack/src/Compiler.ts b/packages/rspack/src/Compiler.ts index 048783a7eb8..00396af8a20 100644 --- a/packages/rspack/src/Compiler.ts +++ b/packages/rspack/src/Compiler.ts @@ -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;