Rollup plugin for javascript-obfuscator.
Install the package:
npmnpm install --save-dev rollup-plugin-javascript-obfuscator
yarnyarn add --dev rollup-plugin-javascript-obfuscator
- npm
npm install --save-dev @kuaizi/rollup-plugin-javascript-obfuscator
- yarn
yarn add --dev @kuaizi/rollup-plugin-javascript-obfuscator
Pass any options available in the obfuscator.
import { rollup } from 'rollup'
import obfuscatorPlugin from 'rollup-plugin-javascript-obfuscator'
rollup({
entry: 'main.js',
plugins: [
//Pass options here (optional)
obfuscatorPlugin({
compact: true
})
]
})
Inline source map configuration:
{
sourceMap: true,
sourceMapMode: 'inline'
}
Separate source map configuration:
{
sourceMap: true
}