Skip to content

Commit 56fb0fe

Browse files
committed
fixed bug with null as first arg to source-map
1 parent e5b5fa6 commit 56fb0fe

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
@@ -11,7 +11,7 @@ var CheapOriginalSource = require("webpack-core/lib/CheapOriginalSource")
1111
var ModuleFilenameHelpers = require("./ModuleFilenameHelpers");
1212

1313
function SourceMapDevToolPlugin(options, sourceMappingURLComment, moduleFilenameTemplate, fallbackModuleFilenameTemplate) {
14-
if(typeof options !== "object") {
14+
if(options && typeof options !== "object") {
1515
this.sourceMapFilename = options;
1616
this.sourceMappingURLComment = sourceMappingURLComment === false ? false : sourceMappingURLComment || "\n//# sourceMappingURL=[url]";
1717
this.moduleFilenameTemplate = moduleFilenameTemplate || "webpack:///[resourcePath]";

0 commit comments

Comments
 (0)