From 4f462cafa7e2d9b9cc1d9f357a0f9cc85c7dfb29 Mon Sep 17 00:00:00 2001 From: Colum Ferry Date: Tue, 12 Nov 2024 13:31:09 +0000 Subject: [PATCH] fix(rspack): stick to commonjs --- packages/rspack/package.json | 1 + packages/rspack/src/plugins/utils/apply-base-config.ts | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/rspack/package.json b/packages/rspack/package.json index 3b0de993af8ed7..012f5997a7dec5 100644 --- a/packages/rspack/package.json +++ b/packages/rspack/package.json @@ -31,6 +31,7 @@ "@rspack/core": "^1.0.4", "@rspack/dev-server": "^1.0.4", "@rspack/plugin-react-refresh": "^1.0.0", + "webpack": "^5.80.0", "autoprefixer": "^10.4.9", "browserslist": "^4.21.4", "chalk": "~4.1.0", diff --git a/packages/rspack/src/plugins/utils/apply-base-config.ts b/packages/rspack/src/plugins/utils/apply-base-config.ts index 07f9642ac39f7e..1a304534f255c5 100644 --- a/packages/rspack/src/plugins/utils/apply-base-config.ts +++ b/packages/rspack/src/plugins/utils/apply-base-config.ts @@ -117,10 +117,6 @@ function applyNxIndependentConfig( hashFunction: config.output?.hashFunction ?? 'xxhash64', // Disabled for performance pathinfo: config.output?.pathinfo ?? false, - // Use CJS for Node since it has the widest support. - scriptType: - config.output?.scriptType ?? - (options.target === 'node' ? undefined : 'module'), }; config.watch = options.watch;