Package Exports
- rollup-plugin-strip
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rollup-plugin-strip) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
rollup-plugin-strip
Remove debugger statements and functions like assert.equal and console.log from your code.
Installation
npm install --save-dev rollup-plugin-stripUsage
// 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