Skip to content

Commit bd87898

Browse files
authored
fix(esbuild): transpile with esnext in dev (#60)
1 parent 0ea62d2 commit bd87898

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,11 @@ var __component__ = /*#__PURE__*/__normalizer(
149149
const { code, map } = await transformWithEsbuild(
150150
resolvedCode,
151151
filename,
152-
{ loader: 'ts', sourcemap: options.sourceMap },
152+
{
153+
loader: 'ts',
154+
target: 'esnext',
155+
sourcemap: options.sourceMap
156+
},
153157
resolvedMap
154158
)
155159
resolvedCode = code

0 commit comments

Comments
 (0)