mirror of https://github.com/webpack/webpack.git
bugfixes
This commit is contained in:
parent
4c6fa00428
commit
528d119391
|
@ -192,7 +192,6 @@ function walkExpression(context, expression) {
|
||||||
line: expression.loc.start.line,
|
line: expression.loc.start.line,
|
||||||
column: expression.loc.start.column
|
column: expression.loc.start.column
|
||||||
});
|
});
|
||||||
console.dir(context.requires[context.requires.length-1]);
|
|
||||||
});
|
});
|
||||||
} else if(param.code) {
|
} else if(param.code) {
|
||||||
// make context
|
// make context
|
||||||
|
|
|
@ -17,10 +17,9 @@ module.exports = function(module, options) {
|
||||||
extensionsAccess.push("\"]");
|
extensionsAccess.push("\"]");
|
||||||
});
|
});
|
||||||
|
|
||||||
return "/***/function err(name) { throw new Error(\"Cannot find module '\"+name+\"'\") }\n"+
|
return "/***/module.exports = function(name) {\n" +
|
||||||
"/***/module.exports = function(name) {\n" +
|
|
||||||
"/***/\tvar map = " + JSON.stringify(module.requireMap) + ";\n" +
|
"/***/\tvar map = " + JSON.stringify(module.requireMap) + ";\n" +
|
||||||
"/***/\treturn require(map[name]" + extensionsAccess.join("") + "||(err(name)));\n" +
|
"/***/\treturn require(map[name]" + extensionsAccess.join("") + "||name);\n" +
|
||||||
"/***/};";
|
"/***/};";
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "webpack",
|
"name": "webpack",
|
||||||
"version": "0.2.6",
|
"version": "0.2.7",
|
||||||
"author": "Tobias Koppers @sokra",
|
"author": "Tobias Koppers @sokra",
|
||||||
"description": "Packs CommonJs Modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand.",
|
"description": "Packs CommonJs Modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand.",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
Loading…
Reference in New Issue