1.0.0 ā¢ Published 2 years ago
rollup-plugin-steal-remove v1.0.0
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()
]
};
1.0.0
2 years ago