From ec60175d8fadb5df71f909477a47c5b55e5c37b6 Mon Sep 17 00:00:00 2001 From: Jared Allard Date: Mon, 27 Oct 2014 15:14:55 -0700 Subject: [PATCH] Prevent Windows Paths from causing issues. --- lib/bundle.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bundle.js b/lib/bundle.js index 1beb368..5213e3e 100644 --- a/lib/bundle.js +++ b/lib/bundle.js @@ -89,7 +89,7 @@ function bundle (input, complete) { var req = "function (require, module, exports) { \n" + dep.source + "}" - dbuffer.push("'" + dep.id + "': ["+req+", "+!!dep.entry+", "+JSON.stringify(dep.deps)+"]") + dbuffer.push(JSON.stringify(dep.id) + ": ["+req+", "+!!dep.entry+", "+JSON.stringify(dep.deps)+"]") } @@ -131,4 +131,4 @@ var loader = function (deps) { }).pop(); } -module.exports = bundle; \ No newline at end of file +module.exports = bundle;