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",