monaco-editor/docs
Daniel Veihelmann f0c47e6e2d
Make Vite sample code Firefox compatible
The current sample code for "Using Vite" works fine in Chrome, but causes errors in Firefox: 

`Error: import declarations may only appear at top level of a module`

In addition to many errors logged to the console, this also causes subtle bugs in Firefox (e.g. the highlighting in the diff editor didn't work).

The problem appears to be that Firefox requires an explicit `type: module` for the web workers.

The revised implementation for Vite takes this into account and has been tested successfully in Chrome and Firefox.
2022-02-23 19:30:08 +01:00
..
integrate-amd.md Update links 2021-11-16 23:18:23 +01:00
integrate-esm.md Make Vite sample code Firefox compatible 2022-02-23 19:30:08 +01:00