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
fix(base-sheets): 1. canvas resize listener 2. remove vite plugin legacy
Dushusirfd3a915122a3
diff --git a/examples/univer-preact-ts/package.json b/examples/univer-preact-ts/package.jsonindex 80df7e61ea..8c0b680263 100644--- a/examples/univer-preact-ts/package.json+++ b/examples/univer-preact-ts/package.json@@ -21,7 +21,6 @@"@testing-library/preact": "^2.0.1","@types/jest": "^27.5.2","@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1","enzyme": "^3.11.0","enzyme-adapter-preact-pure": "^3.3.0","eslint": "^8.22.0",diff --git a/examples/univer-sheet-ts/package.json b/examples/univer-sheet-ts/package.jsonindex 91bee10e92..ee646328e7 100644--- a/examples/univer-sheet-ts/package.json+++ b/examples/univer-sheet-ts/package.json@@ -22,7 +22,6 @@"@testing-library/preact": "^2.0.1","@types/jest": "^27.5.2","@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1","enzyme": "^3.11.0","enzyme-adapter-preact-pure": "^3.3.0","eslint": "^8.22.0",diff --git a/examples/univer-vanilla-ts/package.json b/examples/univer-vanilla-ts/package.jsonindex dac402f291..873646a0cd 100644--- a/examples/univer-vanilla-ts/package.json+++ b/examples/univer-vanilla-ts/package.json@@ -21,9 +21,9 @@"@testing-library/preact": "^2.0.1","@types/jest": "^27.5.2","@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1","enzyme": "^3.11.0","enzyme-adapter-preact-pure": "^3.3.0",+ "esbuild": "^0.16.4","eslint": "^8.22.0","eslint-config-airbnb-typescript": "^17.0.0","eslint-config-prettier": "^8.3.0",diff --git a/examples/univer-vanilla-ts/src/main.tsx b/examples/univer-vanilla-ts/src/main.tsxindex 1802c9fa46..9c7d4a8c30 100644--- a/examples/univer-vanilla-ts/src/main.tsx+++ b/examples/univer-vanilla-ts/src/main.tsx@@ -79,27 +79,27 @@ univerSheetDown.installPlugin(new ClipboardPlugin());// doc-const docPluginConfig = {- container: 'univerdoc',-};-const univerDoc = UniverDoc.newInstance();+// const docPluginConfig = {+// container: 'univerdoc',+// };+// const univerDoc = UniverDoc.newInstance();-univerDoc.installPlugin(new RenderEngine());-univerDoc.installPlugin(new UniverComponentSheet());+// univerDoc.installPlugin(new RenderEngine());+// univerDoc.installPlugin(new UniverComponentSheet());-univerDoc.installPlugin(new DocPlugin(docPluginConfig));-univerDoc.installPlugin(new BaseComponentPlugin());+// univerDoc.installPlugin(new DocPlugin(docPluginConfig));+// univerDoc.installPlugin(new BaseComponentPlugin());-// SlidePlugin+// // SlidePlugin-const slidePluginConfig = {- container: 'universlide',-};+// const slidePluginConfig = {+// container: 'universlide',+// };-const univerSlide = UniverSlide.newInstance();+// const univerSlide = UniverSlide.newInstance();-univerSlide.installPlugin(new RenderEngine());-univerSlide.installPlugin(new UniverComponentSheet());+// univerSlide.installPlugin(new RenderEngine());+// univerSlide.installPlugin(new UniverComponentSheet());-univerSlide.installPlugin(new SlidePlugin(slidePluginConfig));-univerSlide.installPlugin(new BaseComponentPlugin());+// univerSlide.installPlugin(new SlidePlugin(slidePluginConfig));+// univerSlide.installPlugin(new BaseComponentPlugin());diff --git a/packages/base-component/package.json b/packages/base-component/package.jsonindex 4277e84c9b..dae7e685bf 100644--- a/packages/base-component/package.json+++ b/packages/base-component/package.json@@ -36,7 +36,6 @@"@testing-library/preact": "^2.0.1","@types/jest": "^27.5.2","@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1","debug": "^4.3.3","enzyme": "^3.11.0","enzyme-adapter-preact-pure": "^3.3.0",diff --git a/packages/base-component/vite.config.ts b/packages/base-component/vite.config.tsindex b5c66a9a42..cd1332619a 100644--- a/packages/base-component/vite.config.ts+++ b/packages/base-component/vite.config.ts@@ -1,7 +1,6 @@import { defineConfig } from 'vite';import path from 'path';import preact from '@preact/preset-vite';-import legacy from '@vitejs/plugin-legacy';import createExternal from 'vite-plugin-external';import { name, version } from './package.json';@@ -39,10 +38,6 @@ export default defineConfig({},plugins: [preact(),- // legacy({- // targets: ['ie >= 11'],- // additionalLegacyPolyfills: ['regenerator-runtime/runtime'],- // }),createExternal({externals: {'@univer/core': '@univer/core',diff --git a/packages/base-docs/package.json b/packages/base-docs/package.jsonindex 432824c6ac..fac8f4128e 100644--- a/packages/base-docs/package.json+++ b/packages/base-docs/package.json@@ -1,62 +1,61 @@-{- "name": "@univer/base-docs",- "version": "0.0.1",- "description": "UniverSheet normal base-docs",- "keywords": [],- "author": "DreamNum <[email protected]>",- "license": "MIT",- "main": "./src/index.ts",- "module": "./src/index.ts",- "types": "./src/Types/index.d.ts",- "publishConfig": {- "main": "./lib/univer-base-docs.cjs.js",- "module": "./lib/univer-base-docs.es.js",- "types": "./lib/index.d.ts"- },- "exports": {- ".": "./src/index.ts",- "./*": "./src/*"- },- "directories": {- "lib": "lib"- },- "scripts": {- "test": "jest",- "dev": "vite",- "build": "tsc && vite build",- "watch": "vite build",- "link": "pnpm link ./",- "serve": "vite preview"- },- "devDependencies": {- "@preact/preset-vite": "2.0.0",- "@testing-library/preact": "^2.0.1",- "@types/jest": "^27.0.1",- "@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1",- "eslint": "^8.22.0",- "eslint-config-airbnb-typescript": "^17.0.0",- "eslint-config-prettier": "^8.3.0",- "eslint-plugin-import": "^2.23.4",- "eslint-plugin-prettier": "^3.4.0",- "eslint-plugin-jsx-a11y": "^6.5.1",- "eslint-plugin-react": "^7.28.0",- "eslint-plugin-react-hooks": "^4.3.0",- "less": "^4.1.1",- "prettier": "^2.3.2",- "ts-jest": "29.0.1",- "ts-node": "^10.2.1",- "typescript": "^4.4.1-rc",- "vite": "^2.4.4"- },- "dependencies": {- "@univer/base-component": "workspace:^0.0.1",- "@univer/base-render": "workspace:^0.0.1",- "@univer/core": "workspace:^0.0.1",- "@univer/base-sheets": "workspace:^0.0.1",- "@univer/sheets-plugin-filter": "workspace:^0.0.1",- "@univer/style-universheet": "workspace:^0.0.1",- "css-vars-ponyfill": "^2.4.6",- "preact": "^10.5.14"- }-}+{+ "name": "@univer/base-docs",+ "version": "0.0.1",+ "description": "UniverSheet normal base-docs",+ "keywords": [],+ "author": "DreamNum <[email protected]>",+ "license": "MIT",+ "main": "./src/index.ts",+ "module": "./src/index.ts",+ "types": "./src/Types/index.d.ts",+ "publishConfig": {+ "main": "./lib/univer-base-docs.cjs.js",+ "module": "./lib/univer-base-docs.es.js",+ "types": "./lib/index.d.ts"+ },+ "exports": {+ ".": "./src/index.ts",+ "./*": "./src/*"+ },+ "directories": {+ "lib": "lib"+ },+ "scripts": {+ "test": "jest",+ "dev": "vite",+ "build": "tsc && vite build",+ "watch": "vite build",+ "link": "pnpm link ./",+ "serve": "vite preview"+ },+ "devDependencies": {+ "@preact/preset-vite": "2.0.0",+ "@testing-library/preact": "^2.0.1",+ "@types/jest": "^27.0.1",+ "@types/node": "^16.4.6",+ "eslint": "^8.22.0",+ "eslint-config-airbnb-typescript": "^17.0.0",+ "eslint-config-prettier": "^8.3.0",+ "eslint-plugin-import": "^2.23.4",+ "eslint-plugin-jsx-a11y": "^6.5.1",+ "eslint-plugin-prettier": "^3.4.0",+ "eslint-plugin-react": "^7.28.0",+ "eslint-plugin-react-hooks": "^4.3.0",+ "less": "^4.1.1",+ "prettier": "^2.3.2",+ "ts-jest": "29.0.1",+ "ts-node": "^10.2.1",+ "typescript": "^4.4.1-rc",+ "vite": "^2.4.4"+ },+ "dependencies": {+ "@univer/base-component": "workspace:^0.0.1",+ "@univer/base-render": "workspace:^0.0.1",+ "@univer/base-sheets": "workspace:^0.0.1",+ "@univer/core": "workspace:^0.0.1",+ "@univer/sheets-plugin-filter": "workspace:^0.0.1",+ "@univer/style-universheet": "workspace:^0.0.1",+ "css-vars-ponyfill": "^2.4.6",+ "preact": "^10.5.14"+ }+}diff --git a/packages/base-docs/vite.config.ts b/packages/base-docs/vite.config.tsindex 020ecd6209..d5006f79b6 100644--- a/packages/base-docs/vite.config.ts+++ b/packages/base-docs/vite.config.ts@@ -1,7 +1,6 @@import { defineConfig } from 'vite';import path from 'path';import preact from '@preact/preset-vite';-import legacy from '@vitejs/plugin-legacy';import { name, version } from './package.json';const resolve = (url: string) => path.resolve(__dirname, url);@@ -34,11 +33,5 @@ export default defineConfig({port: 3103,open: true, // Automatically open the app in the browser on server start.},- plugins: [- preact(),- legacy({- targets: ['ie >= 11'],- additionalLegacyPolyfills: ['regenerator-runtime/runtime'],- }),- ],+ plugins: [preact()],});diff --git a/packages/base-formula-engine/package.json b/packages/base-formula-engine/package.jsonindex a6b3e42aaa..9a53a12764 100644--- a/packages/base-formula-engine/package.json+++ b/packages/base-formula-engine/package.json@@ -33,7 +33,6 @@"@testing-library/preact": "^2.0.1","@types/jest": "^27.5.2","@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1","eslint": "^8.22.0","eslint-config-airbnb-typescript": "^17.0.0","eslint-config-prettier": "^8.3.0",diff --git a/packages/base-formula-engine/vite.config.ts b/packages/base-formula-engine/vite.config.tsindex 3e9f3ae01f..b5f620ebc0 100644--- a/packages/base-formula-engine/vite.config.ts+++ b/packages/base-formula-engine/vite.config.ts@@ -1,7 +1,6 @@import { defineConfig } from 'vite';import path from 'path';import preact from '@preact/preset-vite';-import legacy from '@vitejs/plugin-legacy';import { name, version } from './package.json';const resolve = (url: string) => path.resolve(__dirname, url);@@ -34,11 +33,5 @@ export default defineConfig({port: 3103,open: true, // Automatically open the app in the browser on server start.},- plugins: [- preact(),- legacy({- targets: ['ie >= 11'],- additionalLegacyPolyfills: ['regenerator-runtime/runtime'],- }),- ],+ plugins: [preact()],});diff --git a/packages/base-numfmt-engine/package.json b/packages/base-numfmt-engine/package.jsonindex da3a539a66..a133072bfd 100644--- a/packages/base-numfmt-engine/package.json+++ b/packages/base-numfmt-engine/package.json@@ -33,7 +33,6 @@"@testing-library/preact": "^2.0.1","@types/jest": "^27.5.2","@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1","debug": "^4.3.3","identity-obj-proxy": "^3.0.0","jest-dev-server": "^6.1.1",diff --git a/packages/base-render/package.json b/packages/base-render/package.jsonindex 847a3a032f..3697dca319 100644--- a/packages/base-render/package.json+++ b/packages/base-render/package.json@@ -33,7 +33,6 @@"@testing-library/preact": "^2.0.1","@types/jest": "^27.5.2","@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1","enzyme": "^3.11.0","enzyme-adapter-preact-pure": "^3.3.0","identity-obj-proxy": "^3.0.0",diff --git a/packages/base-render/vite.config.ts b/packages/base-render/vite.config.tsindex 78df59be01..b1fba9e0d4 100644--- a/packages/base-render/vite.config.ts+++ b/packages/base-render/vite.config.ts@@ -1,7 +1,6 @@import { defineConfig } from 'vite';import path from 'path';import preact from '@preact/preset-vite';-import legacy from '@vitejs/plugin-legacy';import { name, version } from './package.json';import createExternal from 'vite-plugin-external';@@ -38,10 +37,6 @@ export default defineConfig({},plugins: [preact(),- // legacy({- // targets: ['ie >= 11'],- // additionalLegacyPolyfills: ['regenerator-runtime/runtime'],- // }),createExternal({externals: {'@univer/core': '@univer/core',diff --git a/packages/base-sheets/package.json b/packages/base-sheets/package.jsonindex 44466f9671..c48a6c7c25 100644--- a/packages/base-sheets/package.json+++ b/packages/base-sheets/package.json@@ -35,7 +35,6 @@"@testing-library/preact": "^2.0.1","@types/jest": "^27.5.2","@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1","enzyme": "^3.11.0","enzyme-adapter-preact-pure": "^3.3.0","identity-obj-proxy": "^3.0.0",diff --git a/packages/base-sheets/src/SheetPlugin.tsx b/packages/base-sheets/src/SheetPlugin.tsxindex eeb73dbf2a..eae7fff6b7 100644--- a/packages/base-sheets/src/SheetPlugin.tsx+++ b/packages/base-sheets/src/SheetPlugin.tsx@@ -103,9 +103,12 @@ export class SheetPlugin extends Plugin<SheetPluginObserve, SheetContext> {this._canvasEngine = engineInstance;engineInstance.setContainer(container);- window.onresize = () => {+ window.addEventListener('resize', () => {engineInstance.resize();- };+ });+ // window.onresize = () => {+ // engineInstance.resize();+ // };}initialize(context: SheetContext): void {diff --git a/packages/base-sheets/vite.config.ts b/packages/base-sheets/vite.config.tsindex 74d47bb5c4..9b8788f7ae 100644--- a/packages/base-sheets/vite.config.ts+++ b/packages/base-sheets/vite.config.ts@@ -1,7 +1,6 @@import { defineConfig } from 'vite';import path from 'path';import preact from '@preact/preset-vite';-import legacy from '@vitejs/plugin-legacy';import { name, version } from './package.json';import createExternal from 'vite-plugin-external';@@ -47,10 +46,6 @@ export default defineConfig({},plugins: [preact(),- // legacy({- // targets: ['ie >= 11'],- // additionalLegacyPolyfills: ['regenerator-runtime/runtime'],- // }),createExternal({externals: {'@univer/core': '@univer/core',diff --git a/packages/base-slides/package.json b/packages/base-slides/package.jsonindex b37adc303c..4acd3161a6 100644--- a/packages/base-slides/package.json+++ b/packages/base-slides/package.json@@ -1,62 +1,61 @@-{- "name": "@univer/base-slides",- "version": "0.0.1",- "description": "UniverSheet normal base-slides",- "keywords": [],- "author": "DreamNum <[email protected]>",- "license": "MIT",- "main": "./src/index.ts",- "module": "./src/index.ts",- "types": "./src/Types/index.d.ts",- "publishConfig": {- "main": "./lib/univer-base-slides.cjs.js",- "module": "./lib/univer-base-slides.es.js",- "types": "./lib/index.d.ts"- },- "exports": {- ".": "./src/index.ts",- "./*": "./src/*"- },- "directories": {- "lib": "lib"- },- "scripts": {- "test": "jest",- "dev": "vite",- "build": "tsc && vite build",- "watch": "vite build",- "link": "pnpm link ./",- "serve": "vite preview"- },- "devDependencies": {- "@preact/preset-vite": "2.0.0",- "@testing-library/preact": "^2.0.1",- "@types/jest": "^27.0.1",- "@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1",- "eslint": "^8.22.0",- "eslint-config-airbnb-typescript": "^17.0.0",- "eslint-config-prettier": "^8.3.0",- "eslint-plugin-import": "^2.23.4",- "eslint-plugin-prettier": "^3.4.0",- "eslint-plugin-jsx-a11y": "^6.5.1",- "eslint-plugin-react": "^7.28.0",- "eslint-plugin-react-hooks": "^4.3.0",- "less": "^4.1.1",- "prettier": "^2.3.2",- "ts-jest": "29.0.1",- "ts-node": "^10.2.1",- "typescript": "^4.4.1-rc",- "vite": "^2.4.4"- },- "dependencies": {- "@univer/base-component": "workspace:^0.0.1",- "@univer/base-render": "workspace:^0.0.1",- "@univer/core": "workspace:^0.0.1",- "@univer/base-sheets": "workspace:^0.0.1",- "@univer/sheets-plugin-filter": "workspace:^0.0.1",- "@univer/style-universheet": "workspace:^0.0.1",- "css-vars-ponyfill": "^2.4.6",- "preact": "^10.5.14"- }-}+{+ "name": "@univer/base-slides",+ "version": "0.0.1",+ "description": "UniverSheet normal base-slides",+ "keywords": [],+ "author": "DreamNum <[email protected]>",+ "license": "MIT",+ "main": "./src/index.ts",+ "module": "./src/index.ts",+ "types": "./src/Types/index.d.ts",+ "publishConfig": {+ "main": "./lib/univer-base-slides.cjs.js",+ "module": "./lib/univer-base-slides.es.js",+ "types": "./lib/index.d.ts"+ },+ "exports": {+ ".": "./src/index.ts",+ "./*": "./src/*"+ },+ "directories": {+ "lib": "lib"+ },+ "scripts": {+ "test": "jest",+ "dev": "vite",+ "build": "tsc && vite build",+ "watch": "vite build",+ "link": "pnpm link ./",+ "serve": "vite preview"+ },+ "devDependencies": {+ "@preact/preset-vite": "2.0.0",+ "@testing-library/preact": "^2.0.1",+ "@types/jest": "^27.0.1",+ "@types/node": "^16.4.6",+ "eslint": "^8.22.0",+ "eslint-config-airbnb-typescript": "^17.0.0",+ "eslint-config-prettier": "^8.3.0",+ "eslint-plugin-import": "^2.23.4",+ "eslint-plugin-jsx-a11y": "^6.5.1",+ "eslint-plugin-prettier": "^3.4.0",+ "eslint-plugin-react": "^7.28.0",+ "eslint-plugin-react-hooks": "^4.3.0",+ "less": "^4.1.1",+ "prettier": "^2.3.2",+ "ts-jest": "29.0.1",+ "ts-node": "^10.2.1",+ "typescript": "^4.4.1-rc",+ "vite": "^2.4.4"+ },+ "dependencies": {+ "@univer/base-component": "workspace:^0.0.1",+ "@univer/base-render": "workspace:^0.0.1",+ "@univer/base-sheets": "workspace:^0.0.1",+ "@univer/core": "workspace:^0.0.1",+ "@univer/sheets-plugin-filter": "workspace:^0.0.1",+ "@univer/style-universheet": "workspace:^0.0.1",+ "css-vars-ponyfill": "^2.4.6",+ "preact": "^10.5.14"+ }+}diff --git a/packages/base-slides/vite.config.ts b/packages/base-slides/vite.config.tsindex 89742e2e36..e8682194d5 100644--- a/packages/base-slides/vite.config.ts+++ b/packages/base-slides/vite.config.ts@@ -1,7 +1,6 @@import { defineConfig } from 'vite';import path from 'path';import preact from '@preact/preset-vite';-import legacy from '@vitejs/plugin-legacy';import { name, version } from './package.json';const resolve = (url: string) => path.resolve(__dirname, url);@@ -34,11 +33,5 @@ export default defineConfig({port: 3103,open: true, // Automatically open the app in the browser on server start.},- plugins: [- preact(),- legacy({- targets: ['ie >= 11'],- additionalLegacyPolyfills: ['regenerator-runtime/runtime'],- }),- ],+ plugins: [preact()],});diff --git a/packages/common-plugin-collaboration/package.json b/packages/common-plugin-collaboration/package.jsonindex 1afff5081c..1c9480ee2b 100644--- a/packages/common-plugin-collaboration/package.json+++ b/packages/common-plugin-collaboration/package.json@@ -39,7 +39,6 @@"@types/node": "^16.4.6","@typescript-eslint/eslint-plugin": "^4.28.5","@typescript-eslint/parser": "^4.28.5",- "@vitejs/plugin-legacy": "^1.5.0","debug": "^4.3.3","identity-obj-proxy": "^3.0.0","jest": "29.0.0",diff --git a/packages/core/package.json b/packages/core/package.jsonindex 96114263fa..7e25c99dd1 100644--- a/packages/core/package.json+++ b/packages/core/package.json@@ -44,7 +44,6 @@"@types/node": "^18.7.12","@typescript-eslint/eslint-plugin": "^5.34.0","@typescript-eslint/parser": "^5.34.0",- "@vitejs/plugin-legacy": "^2.0.1","debug": "^4.3.4","jest": "29.0.0","jest-dev-server": "^6.1.1",diff --git a/packages/core/vite.config.ts b/packages/core/vite.config.tsindex 3e9fa8bc77..6d322d6096 100644--- a/packages/core/vite.config.ts+++ b/packages/core/vite.config.ts@@ -43,7 +43,7 @@ export default defineConfig({'es6-proxy-polyfill': 'es6-proxy-polyfill','reflect-metadata': 'reflect-metadata',},- }),+ })],resolve: {alias: {diff --git a/packages/docs-plugin-import-doc/package.json b/packages/docs-plugin-import-doc/package.jsonindex 03c44d8e45..27f47f5380 100644--- a/packages/docs-plugin-import-doc/package.json+++ b/packages/docs-plugin-import-doc/package.json@@ -39,13 +39,12 @@"@testing-library/preact": "^2.0.1","@types/jest": "^27.0.1","@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1","eslint": "^8.22.0","eslint-config-airbnb-typescript": "^17.0.0","eslint-config-prettier": "^8.3.0","eslint-plugin-import": "^2.23.4",- "eslint-plugin-prettier": "^3.4.0","eslint-plugin-jsx-a11y": "^6.5.1",+ "eslint-plugin-prettier": "^3.4.0","eslint-plugin-react": "^7.28.0","eslint-plugin-react-hooks": "^4.3.0","less": "^4.1.1",diff --git a/packages/docs-plugin-import-doc/vite.config.ts b/packages/docs-plugin-import-doc/vite.config.tsindex 020ecd6209..d5006f79b6 100644--- a/packages/docs-plugin-import-doc/vite.config.ts+++ b/packages/docs-plugin-import-doc/vite.config.ts@@ -1,7 +1,6 @@import { defineConfig } from 'vite';import path from 'path';import preact from '@preact/preset-vite';-import legacy from '@vitejs/plugin-legacy';import { name, version } from './package.json';const resolve = (url: string) => path.resolve(__dirname, url);@@ -34,11 +33,5 @@ export default defineConfig({port: 3103,open: true, // Automatically open the app in the browser on server start.},- plugins: [- preact(),- legacy({- targets: ['ie >= 11'],- additionalLegacyPolyfills: ['regenerator-runtime/runtime'],- }),- ],+ plugins: [preact()],});diff --git a/packages/sheets-plugin-alternating-colors/package.json b/packages/sheets-plugin-alternating-colors/package.jsonindex 2721ce6791..57ed29629c 100644--- a/packages/sheets-plugin-alternating-colors/package.json+++ b/packages/sheets-plugin-alternating-colors/package.json@@ -33,7 +33,6 @@"@testing-library/preact": "^2.0.1","@types/jest": "^27.5.2","@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1","debug": "^4.3.3","identity-obj-proxy": "^3.0.0","jest-dev-server": "^6.1.1",diff --git a/packages/sheets-plugin-clipboard/package.json b/packages/sheets-plugin-clipboard/package.jsonindex 55fd53c8c9..d6c2a08caa 100644--- a/packages/sheets-plugin-clipboard/package.json+++ b/packages/sheets-plugin-clipboard/package.json@@ -32,7 +32,6 @@"@preact/preset-vite": "2.0.0","@testing-library/preact": "2.0.1","@types/jest": "27.0.3",- "@vitejs/plugin-legacy": "1.5.1","jest": "29.0.0","jest-environment-jsdom": "^29.0.3","less": "4.1.1",diff --git a/packages/sheets-plugin-comment/package.json b/packages/sheets-plugin-comment/package.jsonindex a3f1c48dd1..b91a0c0a88 100644--- a/packages/sheets-plugin-comment/package.json+++ b/packages/sheets-plugin-comment/package.json@@ -33,7 +33,6 @@"@testing-library/preact": "^2.0.1","@types/jest": "^27.5.2","@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1","identity-obj-proxy": "^3.0.0","jest-dev-server": "^6.1.1","jest-environment-jsdom": "^29.0.3",diff --git a/packages/sheets-plugin-conditional-format/package.json b/packages/sheets-plugin-conditional-format/package.jsonindex 932a1290d1..958a09ca66 100644--- a/packages/sheets-plugin-conditional-format/package.json+++ b/packages/sheets-plugin-conditional-format/package.json@@ -33,7 +33,6 @@"@testing-library/preact": "^2.0.1","@types/jest": "^27.5.2","@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1","debug": "^4.3.3","identity-obj-proxy": "^3.0.0","jest-dev-server": "^6.1.1",diff --git a/packages/sheets-plugin-data-validation/package.json b/packages/sheets-plugin-data-validation/package.jsonindex 6261a29f5f..93eade7124 100644--- a/packages/sheets-plugin-data-validation/package.json+++ b/packages/sheets-plugin-data-validation/package.json@@ -33,7 +33,6 @@"@testing-library/preact": "^2.0.1","@types/jest": "^27.5.2","@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1","debug": "^4.3.3","identity-obj-proxy": "^3.0.0","jest-dev-server": "^6.1.1",diff --git a/packages/sheets-plugin-filter/package.json b/packages/sheets-plugin-filter/package.jsonindex 94ecc0b3cb..4db25732ba 100644--- a/packages/sheets-plugin-filter/package.json+++ b/packages/sheets-plugin-filter/package.json@@ -32,7 +32,6 @@"@preact/preset-vite": "2.0.0","@testing-library/preact": "2.0.1","@types/jest": "27.0.3",- "@vitejs/plugin-legacy": "1.5.1","jest": "29.0.0","jest-environment-jsdom": "^29.0.3","less": "4.1.1",diff --git a/packages/sheets-plugin-find/package.json b/packages/sheets-plugin-find/package.jsonindex 39bcc29a85..b3e549ce4e 100644--- a/packages/sheets-plugin-find/package.json+++ b/packages/sheets-plugin-find/package.json@@ -33,7 +33,6 @@"@testing-library/preact": "^2.0.1","@types/jest": "^27.5.2","@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1","debug": "^4.3.3","identity-obj-proxy": "^3.0.0","jest-dev-server": "^6.1.1",diff --git a/packages/sheets-plugin-formula/package.json b/packages/sheets-plugin-formula/package.jsonindex 83ccd98106..d5487296cf 100644--- a/packages/sheets-plugin-formula/package.json+++ b/packages/sheets-plugin-formula/package.json@@ -33,7 +33,6 @@"@testing-library/preact": "^2.0.1","@types/jest": "^27.5.2","@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1","debug": "^4.3.3","identity-obj-proxy": "^3.0.0","jest-dev-server": "^6.1.1",diff --git a/packages/sheets-plugin-formula/vite.config.ts b/packages/sheets-plugin-formula/vite.config.tsindex 3e9f3ae01f..9066e94628 100644--- a/packages/sheets-plugin-formula/vite.config.ts+++ b/packages/sheets-plugin-formula/vite.config.ts@@ -1,7 +1,6 @@import { defineConfig } from 'vite';import path from 'path';import preact from '@preact/preset-vite';-import legacy from '@vitejs/plugin-legacy';import { name, version } from './package.json';const resolve = (url: string) => path.resolve(__dirname, url);@@ -36,9 +35,5 @@ export default defineConfig({},plugins: [preact(),- legacy({- targets: ['ie >= 11'],- additionalLegacyPolyfills: ['regenerator-runtime/runtime'],- }),],});diff --git a/packages/sheets-plugin-freeze/package.json b/packages/sheets-plugin-freeze/package.jsonindex 30c4e63f5c..cadba6312c 100644--- a/packages/sheets-plugin-freeze/package.json+++ b/packages/sheets-plugin-freeze/package.json@@ -33,7 +33,6 @@"@testing-library/preact": "^2.0.1","@types/jest": "^27.5.2","@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1","identity-obj-proxy": "^3.0.0","jest-dev-server": "^6.1.1","jest-environment-jsdom": "^29.0.3",diff --git a/packages/sheets-plugin-group/package.json b/packages/sheets-plugin-group/package.jsonindex d5591d2dee..62e4f0a949 100644--- a/packages/sheets-plugin-group/package.json+++ b/packages/sheets-plugin-group/package.json@@ -33,7 +33,6 @@"@testing-library/preact": "^2.0.1","@types/jest": "^27.0.1","@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1","eslint": "^8.22.0","eslint-config-airbnb-typescript": "^17.0.0","eslint-config-prettier": "^8.3.0",diff --git a/packages/sheets-plugin-group/vite.config.ts b/packages/sheets-plugin-group/vite.config.tsindex 020ecd6209..d5006f79b6 100644--- a/packages/sheets-plugin-group/vite.config.ts+++ b/packages/sheets-plugin-group/vite.config.ts@@ -1,7 +1,6 @@import { defineConfig } from 'vite';import path from 'path';import preact from '@preact/preset-vite';-import legacy from '@vitejs/plugin-legacy';import { name, version } from './package.json';const resolve = (url: string) => path.resolve(__dirname, url);@@ -34,11 +33,5 @@ export default defineConfig({port: 3103,open: true, // Automatically open the app in the browser on server start.},- plugins: [- preact(),- legacy({- targets: ['ie >= 11'],- additionalLegacyPolyfills: ['regenerator-runtime/runtime'],- }),- ],+ plugins: [preact()],});diff --git a/packages/sheets-plugin-image/package.json b/packages/sheets-plugin-image/package.jsonindex 92f603e50c..535d8564e3 100644--- a/packages/sheets-plugin-image/package.json+++ b/packages/sheets-plugin-image/package.json@@ -33,7 +33,6 @@"@testing-library/preact": "^2.0.1","@types/jest": "^27.5.2","@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1","debug": "^4.3.3","identity-obj-proxy": "^3.0.0","jest-dev-server": "^6.1.1",diff --git a/packages/sheets-plugin-import-xlsx/package.json b/packages/sheets-plugin-import-xlsx/package.jsonindex 5e29c8b753..700a3fdc38 100644--- a/packages/sheets-plugin-import-xlsx/package.json+++ b/packages/sheets-plugin-import-xlsx/package.json@@ -33,7 +33,6 @@"@testing-library/preact": "^2.0.1","@types/jest": "^27.0.1","@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1","eslint": "^8.22.0","eslint-config-airbnb-typescript": "^17.0.0","eslint-config-prettier": "^8.3.0",diff --git a/packages/sheets-plugin-import-xlsx/vite.config.ts b/packages/sheets-plugin-import-xlsx/vite.config.tsindex 020ecd6209..d5006f79b6 100644--- a/packages/sheets-plugin-import-xlsx/vite.config.ts+++ b/packages/sheets-plugin-import-xlsx/vite.config.ts@@ -1,7 +1,6 @@import { defineConfig } from 'vite';import path from 'path';import preact from '@preact/preset-vite';-import legacy from '@vitejs/plugin-legacy';import { name, version } from './package.json';const resolve = (url: string) => path.resolve(__dirname, url);@@ -34,11 +33,5 @@ export default defineConfig({port: 3103,open: true, // Automatically open the app in the browser on server start.},- plugins: [- preact(),- legacy({- targets: ['ie >= 11'],- additionalLegacyPolyfills: ['regenerator-runtime/runtime'],- }),- ],+ plugins: [preact()],});diff --git a/packages/sheets-plugin-link/package.json b/packages/sheets-plugin-link/package.jsonindex b62c9828fa..39f3b0627f 100644--- a/packages/sheets-plugin-link/package.json+++ b/packages/sheets-plugin-link/package.json@@ -33,7 +33,6 @@"@testing-library/preact": "^2.0.1","@types/jest": "^27.5.2","@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1","debug": "^4.3.3","identity-obj-proxy": "^3.0.0","jest-dev-server": "^6.1.1",diff --git a/packages/sheets-plugin-numfmt/package.json b/packages/sheets-plugin-numfmt/package.jsonindex d6a548ec60..bc00b5277a 100644--- a/packages/sheets-plugin-numfmt/package.json+++ b/packages/sheets-plugin-numfmt/package.json@@ -33,7 +33,6 @@"@testing-library/preact": "^2.0.1","@types/jest": "^27.5.2","@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1","debug": "^4.3.3","identity-obj-proxy": "^3.0.0","jest-dev-server": "^6.1.1",diff --git a/packages/sheets-plugin-pivot-table/package.json b/packages/sheets-plugin-pivot-table/package.jsonindex eeac09eed8..8fb896704c 100644--- a/packages/sheets-plugin-pivot-table/package.json+++ b/packages/sheets-plugin-pivot-table/package.json@@ -33,7 +33,6 @@"@testing-library/preact": "^2.0.1","@types/jest": "^27.5.2","@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1","identity-obj-proxy": "^3.0.0","jest-dev-server": "^6.1.1","jest-environment-jsdom": "^29.0.3",diff --git a/packages/sheets-plugin-print/package.json b/packages/sheets-plugin-print/package.jsonindex a55744231d..dbc21f55a5 100644--- a/packages/sheets-plugin-print/package.json+++ b/packages/sheets-plugin-print/package.json@@ -33,7 +33,6 @@"@testing-library/preact": "^2.0.1","@types/jest": "^27.5.2","@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1","identity-obj-proxy": "^3.0.0","jest-dev-server": "^6.1.1","jest-environment-jsdom": "^29.0.3",diff --git a/packages/sheets-plugin-protection/package.json b/packages/sheets-plugin-protection/package.jsonindex 700dad214e..f11bb49da5 100644--- a/packages/sheets-plugin-protection/package.json+++ b/packages/sheets-plugin-protection/package.json@@ -33,7 +33,6 @@"@testing-library/preact": "^2.0.1","@types/jest": "^27.5.2","@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1","identity-obj-proxy": "^3.0.0","jest-dev-server": "^6.1.1","jest-environment-jsdom": "^29.0.3",diff --git a/packages/sheets-plugin-screenshot/package.json b/packages/sheets-plugin-screenshot/package.jsonindex 23b84b2f6a..37107f13fe 100644--- a/packages/sheets-plugin-screenshot/package.json+++ b/packages/sheets-plugin-screenshot/package.json@@ -33,7 +33,6 @@"@testing-library/preact": "^2.0.1","@types/jest": "^27.5.2","@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1","debug": "^4.3.3","identity-obj-proxy": "^3.0.0","jest-dev-server": "^6.1.1",diff --git a/packages/sheets-plugin-sort/package.json b/packages/sheets-plugin-sort/package.jsonindex 1839f6a360..ae82688013 100644--- a/packages/sheets-plugin-sort/package.json+++ b/packages/sheets-plugin-sort/package.json@@ -33,7 +33,6 @@"@testing-library/preact": "^2.0.1","@types/jest": "^27.5.2","@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1","debug": "^4.3.3","identity-obj-proxy": "^3.0.0","jest-dev-server": "^6.1.1",diff --git a/packages/sheets-plugin-split-column/package.json b/packages/sheets-plugin-split-column/package.jsonindex 093f176561..7bf5a904bc 100644--- a/packages/sheets-plugin-split-column/package.json+++ b/packages/sheets-plugin-split-column/package.json@@ -33,7 +33,6 @@"@testing-library/preact": "^2.0.1","@types/jest": "^27.5.2","@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1","debug": "^4.3.3","identity-obj-proxy": "^3.0.0","jest-dev-server": "^6.1.1",diff --git a/packages/style-universheet/package.json b/packages/style-universheet/package.jsonindex fb4d6e8a63..b40c1d9598 100644--- a/packages/style-universheet/package.json+++ b/packages/style-universheet/package.json@@ -34,7 +34,6 @@"@testing-library/preact": "^2.0.1","@types/jest": "^27.5.2","@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1","debug": "^4.3.3","enzyme": "^3.11.0","enzyme-adapter-preact-pure": "^3.3.0",diff --git a/packages/style-universheet/vite.config.ts b/packages/style-universheet/vite.config.tsindex 34b1fc2709..a22b638f47 100644--- a/packages/style-universheet/vite.config.ts+++ b/packages/style-universheet/vite.config.ts@@ -1,7 +1,6 @@import { defineConfig } from 'vite';import path from 'path';import preact from '@preact/preset-vite';-import legacy from '@vitejs/plugin-legacy';import createExternal from 'vite-plugin-external';import { name, version } from './package.json';@@ -39,10 +38,6 @@ export default defineConfig({},plugins: [preact(),- // legacy({- // targets: ['ie >= 11'],- // additionalLegacyPolyfills: ['regenerator-runtime/runtime'],- // }),createExternal({externals: {'@univer/core': '@univer/core',