Skip to content

Commit

Permalink
housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
tylim88 committed Apr 8, 2022
1 parent 701d4e0 commit dbff0b0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/bundler/bundler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ import { fetchCache } from './fetchCache'
import { resolvePath } from './resolvePath'

export const initialize = async () => {
await esbuild
.initialize({
wasmURL: `https://www.unpkg.com/esbuild-wasm@${pkg.version}/esbuild.wasm`,
worker: true,
})
.catch()
await esbuild.initialize({
wasmURL: `https://www.unpkg.com/esbuild-wasm@${pkg.version}/esbuild.wasm`,
worker: true,
})
}

export const bundle = async (code: string) => {
Expand Down

0 comments on commit dbff0b0

Please sign in to comment.