We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
null
1 parent e5b5fa6 commit 56fb0feCopy full SHA for 56fb0fe
1 file changed
lib/SourceMapDevToolPlugin.js
@@ -11,7 +11,7 @@ var CheapOriginalSource = require("webpack-core/lib/CheapOriginalSource")
11
var ModuleFilenameHelpers = require("./ModuleFilenameHelpers");
12
13
function SourceMapDevToolPlugin(options, sourceMappingURLComment, moduleFilenameTemplate, fallbackModuleFilenameTemplate) {
14
- if(typeof options !== "object") {
+ if(options && typeof options !== "object") {
15
this.sourceMapFilename = options;
16
this.sourceMappingURLComment = sourceMappingURLComment === false ? false : sourceMappingURLComment || "\n//# sourceMappingURL=[url]";
17
this.moduleFilenameTemplate = moduleFilenameTemplate || "webpack:///[resourcePath]";
0 commit comments