babel-plugin-debug-macros
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -101,2 +101,4 @@ 'use strict'; | ||
value: function _inlineEnvFlags(path) { | ||
var _this = this; | ||
var envFlags = this.envFlags, | ||
@@ -107,3 +109,4 @@ builder = this.builder; | ||
var binding = path.scope.getBinding(flag); | ||
if (binding) { | ||
if (binding && binding.path.isImportSpecifier() && binding.path.parent.source.value === _this.envFlagsSource) { | ||
binding.referencePaths.forEach(function (p) { | ||
@@ -110,0 +113,0 @@ return p.replaceWith(builder.t.booleanLiteral(envFlags[flag])); |
@@ -13,3 +13,3 @@ { | ||
"name": "babel-plugin-debug-macros", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "Debug macros and feature flag stripping", | ||
@@ -16,0 +16,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25735
581