Skip to content

Commit e29eee1

Browse files
authored
Merge pull request webpack#13758 from myNameIsDu/fix/source-map-dev-tool-plugin-options-test
fix: sourceMapDevToolPlugin options test add cjs
2 parents f20158d + c2882c1 commit e29eee1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/SourceMapDevToolPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class SourceMapDevToolPlugin {
152152
const fallbackModuleFilenameTemplate = this.fallbackModuleFilenameTemplate;
153153
const requestShortener = compiler.requestShortener;
154154
const options = this.options;
155-
options.test = options.test || /\.(m?js|css)($|\?)/i;
155+
options.test = options.test || /\.((c|m)?js|css)($|\?)/i;
156156

157157
const matchObject = ModuleFilenameHelpers.matchObject.bind(
158158
undefined,

0 commit comments

Comments
 (0)