@hqjs/babel-plugin-expose-global-to-window
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -49,3 +49,3 @@ const moduleVisitor = isModule => ({ | ||
const { id } = nodePath.node; | ||
const binding = programPath.scope.bindings[id.name]; | ||
const binding = id && programPath.scope.bindings[id.name]; | ||
if (isModule.value || !binding || binding.path !== nodePath) return; | ||
@@ -52,0 +52,0 @@ programPath.node.body.push(assignToWindow(t, id)); |
{ | ||
"name": "@hqjs/babel-plugin-expose-global-to-window", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Explicitly expose global variables and functions to window in non module script", | ||
@@ -31,2 +31,2 @@ "main": "index.js", | ||
} | ||
} | ||
} |
12530