Socket
Socket
Sign inDemoInstall

babel-plugin-grommet

Package Overview
Dependencies
9
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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 @@ }

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc