rollup-plugin-shim
Plugin for rollup to provide a shim implementation for a module. Replaces required dependencies with the specified string instead, especially useful for shimming small dev-time APIs with a big footprint you don't want in production (like debug). For larger fully functional implementations that you want to use a file for you might want to consider the rollup-plugin-alias package instead.
Usage
Install
yarn add -D rollup-plugin-shim
Shim
src/main.js
const log = // ...
rollup.config.js
entry: 'src/main.js' plugins: