Skip to content

Babel plugin to remove unwanted `import` declarations when building packages with babel transforms.

License

Notifications You must be signed in to change notification settings

uditalias/babel-plugin-remove-imports

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Babel plugin to remove unwanted `import` declarations when building packages with babel transforms.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •