microsoft / monaco-editor

A browser based code editor
https://microsoft.github.io/monaco-editor/
MIT License
40.01k stars 3.57k forks source link

[Feature Request] Support ES2023 #4663

Open ErkoKnoll opened 1 month ago

ErkoKnoll commented 1 month ago

Context

Description

Currently, monaco.languages.typescript.ScriptTarget goes up to ES2020. I did managed to get ES2021 working, by setting ScriptTarget = ESNext in the compiler options and set the lib to use es2021, but when I tried to use es2022 or es2023in the lib, Monaco fails to load any ES types. Version I tested with is 0.50.0.

Monaco Editor Playground Link

No response

Monaco Editor Playground Code

No response