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
build(sheet): add sourcemap dev mode
Dushusir4d4b596ed2a4
diff --git a/examples/univer-sheet-ts/scripts/build.ts b/examples/univer-sheet-ts/scripts/build.tsindex 4c487410de..7f04fa2c71 100644--- a/examples/univer-sheet-ts/scripts/build.ts+++ b/examples/univer-sheet-ts/scripts/build.ts@@ -16,7 +16,7 @@ build({// minify: true,// outExtension:{'.js':'.cjs'}, // esm => .js, cjs => .cjs, iife => .iife.jspackages: 'external',- sourcemap: true,+ sourcemap: false,}).then(() => {promises.copyFile(paths.index, `${paths.out}/index.html`);});\ No newline at end of filediff --git a/examples/univer-sheet-ts/scripts/common.ts b/examples/univer-sheet-ts/scripts/common.tsindex 7ebe6b42f7..7c9d4984af 100644--- a/examples/univer-sheet-ts/scripts/common.ts+++ b/examples/univer-sheet-ts/scripts/common.ts@@ -18,6 +18,7 @@ export const commonBuildOptions: BuildOptions = {loader: {".svg": "file",},+ sourcemap: true,plugins: [stylePlugin({cssModulesOptions: {diff --git a/examples/univer-sheet-ts/scripts/start.ts b/examples/univer-sheet-ts/scripts/start.tsindex 4f9a3b88b0..0df16fc96d 100644--- a/examples/univer-sheet-ts/scripts/start.ts+++ b/examples/univer-sheet-ts/scripts/start.ts@@ -13,7 +13,6 @@ import { promises } from "fs";let ctx = await esbuild.context({...commonBuildOptions,outdir: paths.outDev,- sourcemap: false,})await ctx.watch()diff --git a/examples/univer-sheet-ts/src/main.tsx b/examples/univer-sheet-ts/src/main.tsxindex 96aecf499b..e2ed9e8d26 100644--- a/examples/univer-sheet-ts/src/main.tsx+++ b/examples/univer-sheet-ts/src/main.tsx@@ -56,11 +56,9 @@ univer.install(new RenderEngine());const universheet = UniverSheet.newInstance(DEFAULT_WORKBOOK_DATA_DEMO);// sheet.installPlugin(new RenderEngine());univer.addUniverSheet(universheet);-console.info('univr--',univer)// base-sheetuniversheet.installPlugin(new SheetPlugin());-console.info('universheet--',universheet)// universheet.installPlugin(new FormulaPlugin(DEFAULT_FORMULA_DATA_DEMO));// ui-plugin-sheets