From 21ea39b91b51bb7544b357565cc1e6f272ba918f Mon Sep 17 00:00:00 2001 From: JW Date: Thu, 20 Jun 2024 15:49:42 +0800 Subject: [PATCH] chore: update regex --- .../builtin-plugin/RSCClientReferenceManifestRspackPlugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rspack/src/builtin-plugin/RSCClientReferenceManifestRspackPlugin.ts b/packages/rspack/src/builtin-plugin/RSCClientReferenceManifestRspackPlugin.ts index 3c92657894a1..deb926678d50 100644 --- a/packages/rspack/src/builtin-plugin/RSCClientReferenceManifestRspackPlugin.ts +++ b/packages/rspack/src/builtin-plugin/RSCClientReferenceManifestRspackPlugin.ts @@ -36,7 +36,7 @@ export class RSCClientReferenceManifestRspackPlugin { compiler.options.module.rules = []; } compiler.options.module.rules.push({ - test: /rsc-client-entry-loader\.js/, + test: /rsc-client-entry-loader\.(j|t|mj|cj)sx?/, use: [ { loader: "builtin:rsc-client-entry-loader",