babel-plugin-lazy-require
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -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" | ||
} | ||
} |
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
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
8728
138
0
1