rollup-plugin-steal-remove
v1.0.0
Published
Downloads
2
Readme
rollup-plugin-steal-remove
🍣 A Rollup plugin which removes development code from canJS sourcecode that is indicated by steal's steal-remove-start / end
Requirements
This plugin requires an LTS Node version (v8.0.0+) and Rollup v2.0.0+.
Install
npm i rollup-plugin-steal-remove --save-dev
or
yarn add -D rollup-plugin-steal-remove
or
pnpm add -D rollup-plugin-steal-remove
Usage
Create a rollup.config.js
configuration file and import the plugin:
import removeDevelopmentCode from 'rollup-plugin-steal-remove';
export default {
input: 'src/index.js',
output: {
dir: 'output',
format: 'cjs'
},
plugins: [
removeDevelopmentCode()
]
};