Socket
Socket
Sign inDemoInstall

babel-plugin-minify-dead-code-elimination

Package Overview
Dependencies
Maintainers
5
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-minify-dead-code-elimination - npm Package Compare versions

Comparing version 0.3.0-alpha.37064b40 to 0.3.0-alpha.7f4dc3d4

12

lib/index.js

@@ -432,3 +432,8 @@ "use strict";

if (replacementPath.isIdentifier()) {
_bail = refPath.scope.getBinding(replacement.name) !== scope.getBinding(replacement.name);
var _binding2 = scope.getBinding(replacement.name);
// the reference should be in the same scope
// and the replacement should be a constant - this is to
// ensure that the duplication of replacement is not affected
// https://github.com/babel/minify/issues/685
_bail = !(_binding2 && refPath.scope.getBinding(replacement.name) === _binding2 && _binding2.constantViolations.length === 0);
} else {

@@ -446,3 +451,6 @@ replacementPath.traverse({

}
_bail = refPath.scope.getBinding(node.name) !== scope.getBinding(node.name);
var binding = scope.getBinding(node.name);
if (binding && refPath.scope.getBinding(node.name) === binding) {
_bail = binding.constantViolations.length > 0;
}
}

@@ -449,0 +457,0 @@ });

8

package.json
{
"name": "babel-plugin-minify-dead-code-elimination",
"version": "0.3.0-alpha.37064b40",
"version": "0.3.0-alpha.7f4dc3d4",
"description": "",

@@ -15,7 +15,7 @@ "keywords": [

"dependencies": {
"babel-helper-evaluate-path": "^0.3.0-alpha.37064b40",
"babel-helper-mark-eval-scopes": "^0.3.0-alpha.37064b40",
"babel-helper-remove-or-void": "^0.3.0-alpha.37064b40",
"babel-helper-evaluate-path": "^0.3.0-alpha.7f4dc3d4",
"babel-helper-mark-eval-scopes": "^0.3.0-alpha.7f4dc3d4",
"babel-helper-remove-or-void": "^0.3.0-alpha.7f4dc3d4",
"lodash.some": "^4.6.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