Skip to content

Commit

Permalink
fix(oxc): use latest path
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Aug 25, 2024
1 parent b73058b commit 44de51f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions composables/parser/javascript/oxc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ export const oxc: Parser<typeof Oxc, Partial<Oxc.ParserOptions>> = {
},
pkgName: '@oxc-parser/wasm',
init: (pkg) =>
importUrl(`https://cdn.jsdelivr.net/npm/${pkg}/oxc_parser_wasm.js`).then(
async (mod: typeof Oxc) => {
await mod.default()
return mod
},
),
importUrl(
`https://cdn.jsdelivr.net/npm/${pkg}/web/oxc_parser_wasm.js`,
).then(async (mod: typeof Oxc) => {
await mod.default()
return mod
}),
version: fetchVersion,
parse(code, options) {
const { program, errors } = this.parseSync(code, { ...options })
Expand Down

0 comments on commit 44de51f

Please sign in to comment.