Nimble Pixie Merchant

    This package has been deprecated

    Author message:

    This package has been deprecated and is no longer maintained. Please use @rollup/plugin-strip

    rollup-plugin-strip

    1.2.2 • Public • Published

    rollup-plugin-strip

    Remove debugger statements and functions like assert.equal and console.log from your code.

    Installation

    npm install --save-dev rollup-plugin-strip

    Usage

    // rollup.config.js
    import strip from 'rollup-plugin-strip';
     
    export default {
      input: 'src/index.js',
      output: [
        {
          format: 'cjs',
          file: 'dist/my-lib.js'
        }
      ],
      plugins: [
        strip({
          // set this to `false` if you don't want to
          // remove debugger statements
          debugger: true,
     
          // defaults to `[ 'console.*', 'assert.*' ]`
          functions: [ 'console.log', 'assert.*', 'debug', 'alert' ],
     
          // set this to `false` if you're not using sourcemaps –
          // defaults to `true`
          sourceMap: true
        })
      ]
    };

    License

    MIT

    Install

    npm i rollup-plugin-strip

    DownloadsWeekly Downloads

    1,048

    Version

    1.2.2

    License

    MIT

    Unpacked Size

    8.93 kB

    Total Files

    5

    Last publish

    Collaborators

    • eventualbuddha
    • rich_harris
    • shellscape