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.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
chore: update generation rules for globalName in UMD builds (#4061)
白熱d11cbb1e0104
diff --git a/common/shared/vite/utils.ts b/common/shared/vite/utils.tsindex 870e941a26..52391b5782 100644--- a/common/shared/vite/utils.ts+++ b/common/shared/vite/utils.ts@@ -19,7 +19,9 @@ import JavaScriptObfuscator from 'javascript-obfuscator';export function convertLibNameFromPackageName(name: string) {return name- .replace(/^@univerjs(?:-[^/]+)?\//, 'univer-')+ .replace(/^@(univerjs(?:-pro)?)\//, (_, matchedPrefix) => {+ return matchedPrefix === 'univerjs-pro' ? 'univer-pro-' : 'univer-';+ }).replace('/facade', '-facade').split('-').map((word) => word.charAt(0).toUpperCase() + word.slice(1))