Skip to content

Commit

Permalink
Add sourcemap support for .mjs output files
Browse files Browse the repository at this point in the history
  • Loading branch information
philipwalton committed Aug 23, 2018
1 parent ff3ef5e commit 12762ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SourceMapDevToolPlugin.js
Expand Up @@ -84,7 +84,7 @@ class SourceMapDevToolPlugin {
const fallbackModuleFilenameTemplate = this.fallbackModuleFilenameTemplate;
const requestShortener = compiler.requestShortener;
const options = this.options;
options.test = options.test || /\.(js|css)($|\?)/i;
options.test = options.test || /\.(m?js|css)($|\?)/i;

const matchObject = ModuleFilenameHelpers.matchObject.bind(
undefined,
Expand Down

0 comments on commit 12762ff

Please sign in to comment.