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

babel-plugin-transform-remove-imports

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-remove-imports - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

4

lib/index.js

@@ -11,3 +11,3 @@ "use strict";

return {
name: "transform-react-remove-css",
name: "transform-remove-imports",
visitor: {

@@ -19,3 +19,3 @@ // https://babeljs.io/docs/en/babel-types#importdeclaration

if (state.opts.test.test(path.node.source.value)) {
if (new RegExp(state.opts.test).test(path.node.source.value)) {
path.remove();

@@ -22,0 +22,0 @@ }

{
"name": "babel-plugin-transform-remove-imports",
"version": "1.0.4",
"version": "1.0.5",
"description": "Remove the specified import declaration when you use the babel transform to build the package.",

@@ -5,0 +5,0 @@ "repository": "https://github.com/jaywcjlove/babel-plugin-transform-remove-imports",

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