From 1a31b6913dee2d88859f5349ba80f6929508c499 Mon Sep 17 00:00:00 2001 From: Gengkun Date: Wed, 20 Sep 2023 16:18:45 +0800 Subject: [PATCH] fix: missing rspack-only plugins on compiler.webpack (#4223) 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;