getkey/rollup-plugin-obfuscator(新しいタブで開きます)
主要言語: TypeScript
The most powerful rollup plugin for javascript-obfuscator.
- star 数
- 146
- watcher 数
- 2
- fork 数
- 11
- issue 数
- 9
- 最終更新
- 2026/10/04
主要言語: TypeScript
The most powerful rollup plugin for javascript-obfuscator.
The most powerful rollup plugin for javascript-obfuscator.
yarn add --dev rollup-plugin-obfuscator javascript-obfuscator
or
npm install --save-dev rollup-plugin-obfuscator javascript-obfuscator
import obfuscator from 'rollup-plugin-obfuscator'; export default { input: 'src/main.js', plugins: [ obfuscator({ options: { // Your javascript-obfuscator options here // See what's allowed: https://github.com/javascript-obfuscator/javascript-obfuscator }, }), ] }
Type: boolean
Default: false
Set to true if you want to obfuscate the whole bundle, false to obfuscate each file separately.
Type: Object
Default: {}
Options that will be passed to javascript-obfuscator. See allowed options here.
Type: String | RegExp | Array[...String|RegExp]
Default: ['**/*.js', '**/*.ts']
Which files to obfuscate. This parameter is ignored when global is true.
Type: String | RegExp | Array[...String|RegExp]
Default: ['node_modules/**']
Which files not to obfuscate. This parameter is ignored when global is true.
Type: JavascriptObfuscator
Default: require('javascript-obfuscator')
This plugin uses the version of javascript-obfuscator you installed alongside with it, but you are free to override it (for example, if you want to use a fork).