We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
vitejs
Learn more about funding links in repositories.
Report abuse
1 parent 5d3a849 commit f5a3481Copy full SHA for f5a3481
packages/plugin-vue/src/main.ts
@@ -221,7 +221,11 @@ export async function transformMain(
221
const { code, map } = await transformWithEsbuild(
222
resolvedCode,
223
filename,
224
- { loader: 'ts', sourcemap: options.sourceMap },
+ {
225
+ loader: 'ts',
226
+ target: 'esnext',
227
+ sourcemap: options.sourceMap
228
+ },
229
resolvedMap
230
)
231
resolvedCode = code
playground/vue/tsconfig.json
@@ -0,0 +1,7 @@
1
+{
2
+ "compilerOptions": {
3
+ // esbuild transpile should ignore this
4
+ "target": "ES5"
5
6
+ "include": ["src"]
7
+}
0 commit comments