CodinGame / monaco-vscode-api

VSCode public API plugged on the monaco editor
MIT License
226 stars 31 forks source link

Improve demo workers config #274

Closed CGNonofr closed 10 months ago

CGNonofr commented 10 months ago

Use a config that would work for both vite and webpack while removing ugly hacks based on eval/Function

What we need: to get the worker urls from the bundler

The problem: bundlers only detect the usage of the new Worker(new URl(...), import.meta.url) syntax and transform it to an usable worker and we need instead to get the worker final url to: