兼容vue文件不写script标签的场景

pull/1/head 1.1.2
yutent 2023-05-18 18:02:15 +08:00
parent 7d9e691232
commit 1a56f37879
2 changed files with 2 additions and 2 deletions

View File

@ -309,7 +309,7 @@ export function compileVue(file, imports, options = {}) {
})
.join(' ')
js = js ? js[1] : ''
js = js ? js[1] : 'export default {}'
try {
html = compile(html[1], {

View File

@ -1,7 +1,7 @@
{
"name": "fite",
"type": "module",
"version": "1.1.1",
"version": "1.1.2",
"bin": {
"fite": "index.js"
},