Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

chore: fix tsdown plugin (#6708)

白熱0987ff15bc73
diff --git a/common/shared/tsdown/plugins/output-obfuscator.ts b/common/shared/tsdown/plugins/output-obfuscator.ts
index c973d3a422..ae7c066525 100644
--- a/common/shared/tsdown/plugins/output-obfuscator.ts
+++ b/common/shared/tsdown/plugins/output-obfuscator.ts
@@ -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 {