Skip to content

chrishinrichs/babel-plugin-ignore-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

babel-plugin-ignore-import

Babel plugin to ignore import statements that match a particular string. This plugin will completely remove the import or require line from the file if the path matches the passed regular expression string. Also supports passing an array of file extensions.

Usage:

{ plugins: [ ["ignore-import", { "pathPattern": "path/to/remove", "extensions": [".css", ".less"] }] ] }

About

Babel plugin to ignore import statements that match a particular pattern

Resources

Stars

Watchers

Forks

Packages

No packages published