rollup-plugin-no-op
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    20
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    20
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i rollup-plugin-no-op

Weekly Downloads

22

Version

1.0.2

License

MIT

Unpacked Size

5.49 kB

Total Files

6

Last publish

Collaborators

  • dmnsgn