Skip to content

Commit 53a23ec

Browse files
committed
fix for debug mode
1 parent e96c836 commit 53a23ec

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

lib/writeSource.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,15 @@ module.exports = function(module, options, toRealId) {
175175
}
176176
result = [
177177
"eval(",
178-
JSON.stringify(result),
179-
");\n\n// WEBPACK FOOTER //\n",
180-
"// module.id = ", module.id, "\n",
181-
"// module.realId = ", module.realId, "\n",
182-
"// module.chunks = ", module.chunks.join(", "), "\n",
183-
"//@ sourceURL=webpack-module://", encodeURI(module.filename).replace(/%5C|%2F/g, "/"),
184-
")"].join("");
178+
JSON.stringify([
179+
result,
180+
"\n\n// WEBPACK FOOTER //\n",
181+
"// module.id = ", module.id, "\n",
182+
"// module.realId = ", module.realId, "\n",
183+
"// module.chunks = ", module.chunks.join(", "), "\n",
184+
"//@ sourceURL=webpack-module://", encodeURI(module.filename).replace(/%5C|%2F/g, "/")
185+
].join("")),
186+
");"].join("");
185187
}
186188
var finalResult = [];
187189
finalResult.push.apply(finalResult, modulePrepends);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webpack",
3-
"version": "0.3.10",
3+
"version": "0.3.11",
44
"author": "Tobias Koppers @sokra",
55
"description": "Packs CommonJs Modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loading of js, json, jade, coffee, css, ... out of the box and more with custom loaders.",
66
"dependencies": {

0 commit comments

Comments
 (0)