babel-plugin-ignore-import

1.1.0 • Public • Published

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"] }] ] }

Dependencies (0)

    Dev Dependencies (5)

    Package Sidebar

    Install

    npm i babel-plugin-ignore-import

    Weekly Downloads

    180

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    3.42 kB

    Total Files

    9

    Last publish

    Collaborators

    • chrishinrichs