A Rollup plugin to remove function calls.
npm i rollup-plugin-remove-call --save-dev
The following example removes
addDebugLog(..)
console.log(...)
a?.b?.c(...)
anda.b.c(...)
import { rollup } from "rollup";
import { removeCall } from 'rollup-plugin-remove-call';
export default {
input: 'src/index.js',
plugins: [
removeCall({ toRemove: ['addDebugLog', 'console.log', 'a.b.c'] })
]
};
MIT © hakocat