Skip to content

This plugin extends the behavior of rollup externals to be able to define wildcard externals.

License

Notifications You must be signed in to change notification settings

oat-sa/rollup-plugin-wildcard-external

Repository files navigation

rollup-plugin-wildcard-external

This plugin extends the behaviour of rollup externals to be able to define wildcard externals.

Plugin uses minimatch under the hood, so any glob pattern is supported.

Installation

npm install --save-dev @oat-sa/rollup-plugin-wildcard-external

Usage

// rollup.config.js
import wildcardExternal from '@oat-sa/rollup-plugin-wildcard-external';

export default {
    // ...
    plugins: [
        wildcardExternal([
            // Exclude all module from lib alias
            'lib/**'
        ])
    ]
};

For developers

Tests

The plugin is tested with mocha. You can run tests with

npm run test

or with coverage

npm run test:cov

Code style check

npm run lint

About

This plugin extends the behavior of rollup externals to be able to define wildcard externals.

Resources

License

Stars

Watchers

Forks

Packages

No packages published