diff --git a/packages/webpack/src/utils/config.ts b/packages/webpack/src/utils/config.ts index 65091930fa12b..2d7e04860f8b6 100644 --- a/packages/webpack/src/utils/config.ts +++ b/packages/webpack/src/utils/config.ts @@ -90,6 +90,7 @@ export function getBaseWebpackPartial( hashFunction: 'xxhash64', // Disabled for performance pathinfo: false, + scriptType: internalOptions.esm ? 'module' : undefined, }, module: { // Enabled for performance