babel-plugin-debug-macros
Advanced tools
Comparing version 0.2.0-beta.3 to 0.2.0-beta.4
@@ -15,3 +15,3 @@ { | ||
"name": "babel-plugin-debug-macros", | ||
"version": "0.2.0-beta.3", | ||
"version": "0.2.0-beta.4", | ||
"description": "Debug macros and feature flag stripping", | ||
@@ -18,0 +18,0 @@ "main": "src/index.js", |
@@ -175,3 +175,9 @@ 'use strict'; | ||
specifiers.forEach(specifier => { | ||
if (specifier.imported && this.featuresMap[source][specifier.imported.name] !== null) { | ||
if (!specifier.imported) { | ||
return; | ||
} | ||
let isKnownFeature = specifier.imported.name in this.featuresMap[source]; | ||
if (!isKnownFeature) { | ||
throw new Error( | ||
@@ -178,0 +184,0 @@ `Imported ${specifier.imported.name} from ${source} which is not a supported flag.` |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
199431
1549
0