From 3f0b05963296f4d2c891b4116a92288e5ec0f7f4 Mon Sep 17 00:00:00 2001 From: macbook Date: Wed, 24 Jun 2015 14:37:11 +0900 Subject: [PATCH] bug fixed --- lib/loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/loader.js b/lib/loader.js index e3b28600..1a88770a 100644 --- a/lib/loader.js +++ b/lib/loader.js @@ -14,7 +14,7 @@ module.exports = function(content, map) { var root = query.root; var moduleMode = query.modules || query.module; - if(typeof map !== "string") { + if(map && typeof map !== "string") { map = JSON.stringify(map); }