diff --git a/src/babel/build-external-helpers.js b/src/babel/build-external-helpers.js index b20f956c3b..0d405ec8e2 100644 --- a/src/babel/build-external-helpers.js +++ b/src/babel/build-external-helpers.js @@ -63,7 +63,7 @@ export default function (whitelist, outputType = "global") { var: buildVar }[outputType]; - if (builder) { + if (build) { tree = build(namespace, builder); } else { throw new Error(messages.get("unsupportedOutputType", outputType));