mirror of
https://github.com/dream-num/univer.git
synced 2026-09-24 15:32:18 +08:00
chore: fix tsdown plugin (#6708)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user