rollup-plugin-no-op
v1.0.2
Published
Replace imported module with 'export default {}' using module IDs. Useful when using 'external' is not enough.
Downloads
63
Maintainers
Readme
rollup-plugin-no-op
Replace imported module with export default {}
using module IDs. Useful when using external is not enough.
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.