Skip to content

Commit 528d119

Browse files
committed
bugfixes
1 parent 4c6fa00 commit 528d119

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

lib/parse.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ function walkExpression(context, expression) {
192192
line: expression.loc.start.line,
193193
column: expression.loc.start.column
194194
});
195-
console.dir(context.requires[context.requires.length-1]);
196195
});
197196
} else if(param.code) {
198197
// make context

lib/writeSource.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ module.exports = function(module, options) {
1717
extensionsAccess.push("\"]");
1818
});
1919

20-
return "/***/function err(name) { throw new Error(\"Cannot find module '\"+name+\"'\") }\n"+
21-
"/***/module.exports = function(name) {\n" +
20+
return "/***/module.exports = function(name) {\n" +
2221
"/***/\tvar map = " + JSON.stringify(module.requireMap) + ";\n" +
23-
"/***/\treturn require(map[name]" + extensionsAccess.join("") + "||(err(name)));\n" +
22+
"/***/\treturn require(map[name]" + extensionsAccess.join("") + "||name);\n" +
2423
"/***/};";
2524
}
2625
return;

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.2.6",
3+
"version": "0.2.7",
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.",
66
"dependencies": {

0 commit comments

Comments
 (0)