Skip to content

Commit

Permalink
fix "try.html"
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Mar 9, 2021
1 parent 1a458e0 commit caca866
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/try.html
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,9 @@ <h2>Output</h2>
} catch (e) {
}

esbuild.startService({
esbuild.initialize({
wasmURL: '../npm/esbuild-wasm/esbuild.wasm',
}).then(service => {
}).then(() => {
const output = document.querySelector('#output .outer')
let debounceTimeout = 0
let isRunning = false
Expand All @@ -301,7 +301,7 @@ <h2>Output</h2>
isRunning = true
needsRun = false

service.transform(input.value, {
esbuild.transform(input.value, {
target: target.value.toLowerCase(),
loader: loader.value.toLowerCase(),
format: format.value === 'Preserve' ? void 0 : format.value.toLowerCase(),
Expand Down

0 comments on commit caca866

Please sign in to comment.