Skip to content

Replace imported module with 'export default {}' using module IDs. Useful when using 'external' is not enough.

License

Notifications You must be signed in to change notification settings

dmnsgn/rollup-plugin-no-op

Repository files navigation

rollup-plugin-no-op

npm version stability-stable npm minzipped size dependencies types Conventional Commits styled with prettier linted with eslint license

Replace imported module with export default {} using module IDs. Useful when using external is not enough.

paypal coinbase twitter

Installation

npm install rollup-plugin-no-op

Usage

Create a rollup.config.js configuration file and import the plugin:

import noOp from "rollup-plugin-no-op";

export default {
  input: "src/index.js",
  output: {
    dir: "output",
  },
  plugins: [
    // ...,
    noOp({ ids: ["inspector"] }), // Replace Node.js built-in "inspector"
  ],
};

Then call rollup either via the CLI or the API.

License

MIT. See license file.

About

Replace imported module with 'export default {}' using module IDs. Useful when using 'external' is not enough.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published