gosling.js
gosling.js copied to clipboard
chore: Vite v3.0
Migrates Vite to the latest major version (3.0). The biggest change (from our perspective) is that vite now unifies dev/build bundling with esbuild, so the esbuildOptions
accomplish the behavior of the custom plugin we had previously.
Vite v3 also changes how workers are loaded, and the bundleWebWorker
plugin no longer works. This means that we will need to develop in Chrome (which is the only browser that supports Worker(..., { type: 'module' })
). The final build for the editor can be tested in safari and firefox.
hmm now the final build doesn't seem to be working...
Thanks for this update! Could you elaborate on the issue with the final build?
When I test this locally, I can see that it builds fine.


Sorry... should have elaborated so it's not just confusing. The problem is that the final editor build yarn run build-editor
is broken. The site throws an error for the BAM example, since the worker code uses Buffer
...