chore: fix tsdown plugin (#6708)

This commit is contained in:
白熱
2026-03-18 16:08:36 +08:00
committed by GitHub
parent d875cdfd05
commit 0987ff15bc
@@ -23,24 +23,9 @@ interface IBundleOutput {
fileName?: string;
}
const DEFAULT_OBFUSCATION_OPTIONS = {
compact: true,
identifierNamesGenerator: 'hexadecimal',
renameGlobals: false,
renameProperties: false,
selfDefending: false,
simplify: true,
splitStrings: false,
stringArray: true,
stringArrayThreshold: 1,
transformObjectKeys: true,
unicodeEscapeSequence: false,
} satisfies ObfuscatorOptions;
export function createOutputObfuscatorPlugin(options: Partial<ObfuscatorOptions> = {}) {
export function createOutputObfuscatorPlugin() {
const obfuscationOptions: ObfuscatorOptions = {
...DEFAULT_OBFUSCATION_OPTIONS,
...options,
ignoreImports: true,
};
return {