Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-lazy-require

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-lazy-require - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

8

index.js

@@ -116,4 +116,8 @@ 'use strict';

if (
(t.isVariableDeclarator(path.parent) || t.isFunctionDeclaration(path.parent)) &&
path.parent.id === path.node
(
(t.isVariableDeclarator(path.parent) || t.isFunctionDeclaration(path.parent)) &&
path.parent.id === path.node
) || (
(t.isObjectProperty(path.parent)) && path.parent.key === path.node
)
) {

@@ -120,0 +124,0 @@ return;

{
"name": "babel-plugin-lazy-require",
"version": "1.0.0",
"version": "1.0.1",
"description": "Transform CommonJS require statements into lazily evaluated imports",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "babel test --plugins ../index.js --out-dir test-dist"
},

@@ -24,3 +24,6 @@ "repository": {

},
"homepage": "https://github.com/princjef/babel-plugin-lazy-require#readme"
"homepage": "https://github.com/princjef/babel-plugin-lazy-require#readme",
"devDependencies": {
"babel-cli": "^6.26.0"
}
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc