Skip to content

Commit

Permalink
esbuild: Fix file path
Browse files Browse the repository at this point in the history
Closes GH-79.
  • Loading branch information
wooorm committed Aug 30, 2021
1 parent fc5f7d3 commit d5a4aa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/integration/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function createLoader(options) {
return defaultTransformSource(value, context, defaultTransformSource)
}

const file = await process(new VFile({value, path: context.url}))
const file = await process(new VFile({value, path: new URL(context.url)}))
// V8 on Erbium.
/* c8 ignore next 2 */
return {source: String(file).replace(/\/jsx-runtime(?=["'])/g, '$&.js')}
Expand Down

0 comments on commit d5a4aa6

Please sign in to comment.