JSPM

rollupv2.0-plugin-javascript-obfuscator

2.0.4
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 11
    • Score
      100M100P100Q18787F
    • License MIT

    Plugin for Rollup to obfuscate JS code

    Package Exports

    • rollupv2.0-plugin-javascript-obfuscator

    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 (rollupv2.0-plugin-javascript-obfuscator) 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-javascript-obfuscator

    Build Status Coverage Status

    Rollup plugin for javascript-obfuscator.

    Installation

    Install the package:

    • npm npm install --save-dev rollup-plugin-javascript-obfuscator
    • yarn yarn add --dev rollup-plugin-javascript-obfuscator

    Usage

    Pass any options available in the obfuscator.

    import obfuscatorPlugin from 'rollup-plugin-javascript-obfuscator'
    
        export default {
            inout: 'index.js',
            output: {
                file: 'dist/index.js'
            },
            plugins: [
                obfuscatorPlugin({
                    ...options
                })
            ]
        }

    Source Maps

    Inline source map configuration:

    {
        sourceMap: true,
        sourceMapMode: 'inline'
    }

    Separate source map configuration:

    {
        sourceMap: true
    }