修复vue文件中引入样式文件报错的bug

pull/1/head 1.1.9
yutent 2023-06-08 16:03:05 +08:00
parent 6af38aad87
commit 9966e3ac9a
2 changed files with 2 additions and 2 deletions

View File

@ -270,7 +270,7 @@ export function parseJs(
}) })
if (fixedStyle) { if (fixedStyle) {
code += '\n\n' + (LEGACY_MODE ? '' : SHEETS_DEF) + fixedStyle code += '\n\n' + (IS_ENTRY ? SHEETS_DEF : '') + fixedStyle
if (IS_ENTRY && !LEGACY_MODE) { if (IS_ENTRY && !LEGACY_MODE) {
code += '\ndocument.adoptedStyleSheets = __sheets__' code += '\ndocument.adoptedStyleSheets = __sheets__'

View File

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