Skip to content

Commit

Permalink
feat: import ts with .js in vue (#7998)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored May 4, 2022
1 parent 329b844 commit efec835
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/plugin-vue/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@ export async function transformMain(
code: resolvedCode,
map: resolvedMap || {
mappings: ''
},
meta: {
vite: {
lang: descriptor.script?.lang || descriptor.scriptSetup?.lang || 'js'
}
}
}
}
Expand Down

0 comments on commit efec835

Please sign in to comment.