Optimize Playground

This commit is contained in:
2024-01-24 14:35:29 +08:00
parent 55065cd5af
commit cade87febe
3 changed files with 89 additions and 61 deletions

View File

@@ -14,7 +14,10 @@ class Compiler {
constructor() {
try {
void esbuild
.initialize({ worker: true, wasmURL: 'https://esm.sh/esbuild-wasm/esbuild.wasm' })
.initialize({
worker: true,
wasmURL: 'https://esm.sh/esbuild-wasm@0.19.12/esbuild.wasm'
})
.finally(() => {
this.init = true
})