babel-plugin-remove-imports

0.0.2 • Public • Published

babel-plugin-remove-imports

Remove unwanted import declarations when building packages with babel transforms.

Installation

$ npm install -D babel-plugin-remove-imports

Usage

This plugin currently working only via the Node API

var RemoveImports = require("babel-plugin-remove-imports");
var regexp = new RegExp(/\S+(\.scss$)/g);
require("babel-core").transform("code", {
  plugins: [RemoveImports(regexp)]
});

When regexp can be an Array of RegExp

Readme

Keywords

none

Package Sidebar

Install

npm i babel-plugin-remove-imports

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • uditalias