Skip to content

Commit ccec298

Browse files
committed
fixed overwriting with function decl webpack#32
1 parent a5f154f commit ccec298

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/parse.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ function walkStatement(options, context, statement) {
8181

8282
// Declarations
8383
case "FunctionDeclaration":
84-
if(options.overwrites.hasOwnProperty(statement.name)) {
85-
context.overwrite.push(statement.name);
84+
if(options.overwrites.hasOwnProperty(statement.id.name)) {
85+
context.overwrite.push(statement.id.name);
8686
}
8787
var oldInTry = context.inTry;
8888
context.inTry = false;

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.7.14",
3+
"version": "0.7.15",
44
"author": "Tobias Koppers @sokra",
55
"description": "Packs CommonJs/AMD 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)