兼容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(' ') .join(' ')
js = js ? js[1] : '' js = js ? js[1] : 'export default {}'
try { try {
html = compile(html[1], { html = compile(html[1], {

View File

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