CesiumGS / CesiumGS/cesium

Monaco 0.56 breaks worker imports in Vite build

Open Beginner friendly
#13,747 0 comments 0 reactions 0 assignees View on GitHub
dependencies
Dominant language
JavaScript
Stars
15.8k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

monaco-editor 0.56 introduced a package exports map:

```JS
"./*.js": "./esm/vs/*.js",
"./*": "./esm/vs/*.js"
```

This remaps `monaco-editor/` → `./esm/vs/.js`. So the existing worker imports in `SandcastleEditor.tsx:21` like `monaco-editor/esm/vs/editor/editor.worker?worker` now resolve to a doubled `esm/vs/esm/vs/editor/editor.worker.js path` that doesn't exist. Rolldown then fails to resolve the path.

Migrating would require rewriting all five worker import paths (to `monaco-editor/editor/editor.worker?worker, etc.`).

Contributor guide

Open the contributing guide

Research direction

Start in SandcastleEditor.tsx at line 21 and inspect all five Monaco worker imports. Run the Vite/Rolldown build to reproduce the resolution failure, then verify that the updated import paths resolve successfully and the build completes without the doubled esm/vs path.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, vite
Domain
build-system, frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
84/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.