We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df8b20f commit 77310fcCopy full SHA for 77310fc
packages/plugin-vue/src/main.ts
@@ -272,7 +272,10 @@ async function genScriptCode(
272
if (script) {
273
// If the script is js/ts and has no external src, it can be directly placed
274
// in the main module.
275
- if ((!script.lang || script.lang === 'ts') && !script.src) {
+ if (
276
+ (!script.lang || (script.lang === 'ts' && options.devServer)) &&
277
+ !script.src
278
+ ) {
279
scriptCode = options.compiler.rewriteDefault(
280
script.content,
281
'_sfc_main',
0 commit comments