Skip to content

Commit f9073ca

Browse files
committed
fixed pure AMD define webpack#32
1 parent b375130 commit f9073ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/parse.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ function walkExpression(options, context, expression) {
351351
expression.arguments.length == 1 &&
352352
expression.callee.type === "Identifier" &&
353353
expression.callee.name === "define") {
354+
context.requires = context.requires || [];
354355
context.requires.push({
355356
name: "__webpack_amd_define",
356357
append: "(module)",

0 commit comments

Comments
 (0)