We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c58adc commit 506d7b4Copy full SHA for 506d7b4
packages/webpack5/src/configuration/base.ts
@@ -185,7 +185,7 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
185
config.devtool(sourceMapType);
186
187
// For ESM builds, fix the sourceMappingURL to use correct paths
188
- if (!env.commonjs && sourceMapType && sourceMapType !== 'hidden-source-map') {
+ if (sourceMapType && sourceMapType !== 'hidden-source-map') {
189
config
190
.plugin('FixSourceMapUrlPlugin')
191
.use(FixSourceMapUrlPlugin as any, [{ outputPath }]);
0 commit comments