1.0.0 ⢠Published 4 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-devor
yarn add -D rollup-plugin-steal-removeor
pnpm add -D rollup-plugin-steal-removeUsage
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
4 years ago