Closed doroved closed 1 year ago
this working in vite: 3.2.0
import obfuscatorModule, { RollupPluginObfuscatorOptions } from "rollup-plugin-obfuscator";
const obfuscator: (override: Partial<RollupPluginObfuscatorOptions>) => Plugin = (obfuscatorModule as any).default
this working in vite: 3.2.0
import obfuscatorModule, { RollupPluginObfuscatorOptions } from "rollup-plugin-obfuscator"; const obfuscator: (override: Partial<RollupPluginObfuscatorOptions>) => Plugin = (obfuscatorModule as any).default
How can I use this without TS?
this working in vite: 3.2.0
import obfuscatorModule, { RollupPluginObfuscatorOptions } from "rollup-plugin-obfuscator"; const obfuscator: (override: Partial<RollupPluginObfuscatorOptions>) => Plugin = (obfuscatorModule as any).default
How can I use this without TS?
just simply remove the type :)
import obfuscatorModule from "rollup-plugin-obfuscator";
const obfuscator = obfuscatorModule.default
this working in vite: 3.2.0
import obfuscatorModule, { RollupPluginObfuscatorOptions } from "rollup-plugin-obfuscator"; const obfuscator: (override: Partial<RollupPluginObfuscatorOptions>) => Plugin = (obfuscatorModule as any).default
How can I use this without TS?
just simply remove the type :)
import obfuscatorModule from "rollup-plugin-obfuscator"; const obfuscator = obfuscatorModule.default
Yes, that's exactly what I did.) But I got this message, without obfuscating the code
The "transform" hook used by the output plugin rollup-plugin-obfuscator is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.
i try to set the obfuscator-config options in both "fileOptions" and "globalOptions", and use cdn to exclude "vue" ,"vue-router" or other libs, it's working.
this is my config:
Describe the bug
rollup-plugin-obfuscator
and not injavascript-obfuscator
Hi, I have this error TypeError: obfuscator is not a function
I'm using code like this.
Stack trace
Package versions:
rollup-plugin-obfuscator
: v0.2.2javascript-obfuscator
: v4.0.0vite
: v3.0.1