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: remove keepNames (#4572)

#FF0000f406d3d84f53
diff --git a/common/shared/vite/index.ts b/common/shared/vite/index.ts
index fa3cfd55f5..0359b9700c 100644
--- a/common/shared/vite/index.ts
+++ b/common/shared/vite/index.ts
@@ -41,7 +41,6 @@ async function buildESM(sharedConfig: InlineConfig, options: IBuildExecuterOptio
return Promise.all(Object.keys(entry).map((key) => {
const basicConfig: InlineConfig = {
- esbuild: {},
build: {
emptyOutDir: false,
outDir: 'lib',
@@ -60,13 +59,6 @@ async function buildESM(sharedConfig: InlineConfig, options: IBuildExecuterOptio
},
};
- if (pkg.name.startsWith('@univerjs/')) {
- basicConfig.esbuild = {
- minifyIdentifiers: false,
- keepNames: true,
- };
- }
-
const config: InlineConfig = mergeConfig(sharedConfig, basicConfig);
if (key === 'index') {
@@ -210,10 +202,6 @@ export async function build(options?: IBuildOptions) {
build: {
target: 'chrome70',
},
- esbuild: {
- minifyIdentifiers: false,
- keepNames: true,
- },
resolve: {
conditions: nodeFirst ? ['node', 'default'] : undefined,
},