Skip to content

Commit 83c3fa2

Browse files
committed
typeof module do not longer import module overwrite webpack#32
1 parent ccec298 commit 83c3fa2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/parse.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@ function walkExpression(options, context, expression) {
173173
expression.argument.type === "Identifier" &&
174174
expression.argument.name === "require")
175175
break;
176+
if(expression.operator === "typeof" &&
177+
expression.argument &&
178+
expression.argument.type === "Identifier" &&
179+
expression.argument.name === "module")
180+
break;
176181
walkExpression(options, context, expression.argument);
177182
break;
178183
case "BinaryExpression":

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