Skip to content

Commit 84ab798

Browse files
committed
pretty context output
1 parent 1135c86 commit 84ab798

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/writeSource.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ module.exports = function(module, options, toRealId, toRealChuckId) {
2121
});
2222

2323
result = "/***/\tvar map = " + JSON.stringify(realRequireMap) + ",\n" +
24-
"/***/requireInContext = module.exports = function(name) {\n" +
25-
"/***/\treturn require(" + extensionsAccess.join("||") + "||name);\n" +
26-
"/***/};" +
27-
"/***/requireInContext.keys = function() { return Object.keys(map) }";
24+
"/***/\trequireInContext = module.exports = function(name) {\n" +
25+
"/***/\t\treturn require(" + extensionsAccess.join(" || ") + "||name);\n" +
26+
"/***/\t};\n" +
27+
"/***/\trequireInContext.keys = function() { return Object.keys(map) }";
2828
} else
2929
return;
3030
} else {

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.5.0",
3+
"version": "0.5.1",
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)