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.

fix: fix monaco editor not built (#4738)

Wenzhao Hu191b8c8c368d
diff --git a/examples/esbuild.config.ts b/examples/esbuild.config.ts
index 941d826fa6..4232b610dc 100644
--- a/examples/esbuild.config.ts
+++ b/examples/esbuild.config.ts
@@ -290,21 +290,20 @@ const config: SameShape<BuildOptions, BuildOptions> = {
* Build the project
*/
async function main() {
+ await monacoBuildTask();
+
if (args.watch) {
const ctx = await esbuild.context(config);
- await monacoBuildTask();
await nodeBuildTask();
await ctx.watch();
const port = isE2E ? 3000 : await detect(3002);
-
await ctx.serve({
servedir: './local',
port,
});
const url = `http://localhost:${port}`;
-
console.log(`Local server: ${url}`);
} else {
await esbuild.build(config);