babel-plugin-grommet
Advanced tools
Comparing version 0.2.0 to 0.2.1
10
index.js
@@ -26,4 +26,12 @@ const types = require('babel-types'); | ||
modulesInContext.some((module) => { | ||
// if webpack alias is enabled the es6 path does not exist. | ||
if (module.endsWith(`/${componentName}`)) { | ||
newPath = module; | ||
if (process.env.NODE_ENV === 'development') { | ||
// in development webpack alias may be enabled | ||
// es6 modules are not available in the source code | ||
// we need to remove it and use commonjs structure. | ||
newPath = module.replace('es6/', ''); | ||
} else { | ||
newPath = module; | ||
} | ||
return true; | ||
@@ -30,0 +38,0 @@ } |
{ | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"name": "babel-plugin-grommet", | ||
@@ -4,0 +4,0 @@ "description": "Babel plugin to transform member style imports into default imports", |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
14920
52
2