common-shake
Advanced tools
Comparing version 1.4.3 to 1.4.4
@@ -218,2 +218,3 @@ 'use strict'; | ||
return false; | ||
this.requireUses.add(init.callee); | ||
@@ -414,3 +415,8 @@ return true; | ||
this.siftRequireCall(node, current); | ||
const module = this.siftRequireCall(node, current); | ||
if (!module) | ||
return; | ||
// TODO(indutny): support `var lib; lib = require('...')` | ||
module.bailout('Escaping `require` call', node.loc, current.resource); | ||
}; | ||
@@ -436,3 +442,3 @@ | ||
if (this.requireUses.has(callee)) | ||
return; | ||
return false; | ||
this.requireUses.add(callee); | ||
@@ -439,0 +445,0 @@ |
{ | ||
"name": "common-shake", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"description": "CommonJS Tree Shake", | ||
@@ -5,0 +5,0 @@ "main": "lib/shake.js", |
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
23177
605