Skip to content

Commit

Permalink
fix(esbuild): transpile with esnext in dev (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
linshuohao committed Nov 30, 2022
1 parent 0ea62d2 commit bd87898
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.ts
Expand Up @@ -149,7 +149,11 @@ var __component__ = /*#__PURE__*/__normalizer(
const { code, map } = await transformWithEsbuild(
resolvedCode,
filename,
{ loader: 'ts', sourcemap: options.sourceMap },
{
loader: 'ts',
target: 'esnext',
sourcemap: options.sourceMap
},
resolvedMap
)
resolvedCode = code
Expand Down

0 comments on commit bd87898

Please sign in to comment.