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 ec7e884 commit 3f0b059Copy full SHA for 3f0b059
lib/loader.js
@@ -14,7 +14,7 @@ module.exports = function(content, map) {
14
var root = query.root;
15
var moduleMode = query.modules || query.module;
16
17
- if(typeof map !== "string") {
+ if(map && typeof map !== "string") {
18
map = JSON.stringify(map);
19
}
20
0 commit comments