Skip to content

Commit efec835

Browse files
authored
feat: import ts with .js in vue (#7998)
1 parent 329b844 commit efec835

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/plugin-vue/src/main.ts

+5
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,11 @@ export async function transformMain(
211211
code: resolvedCode,
212212
map: resolvedMap || {
213213
mappings: ''
214+
},
215+
meta: {
216+
vite: {
217+
lang: descriptor.script?.lang || descriptor.scriptSetup?.lang || 'js'
218+
}
214219
}
215220
}
216221
}

0 commit comments

Comments
 (0)