修复入口文件有样式引用时报错的bug
parent
6a6a8e31c6
commit
0b398f4d67
|
@ -136,6 +136,11 @@ export function parseJs(
|
|||
if (isBuild) {
|
||||
ASSETS_DIR = '/assets/'
|
||||
}
|
||||
|
||||
if (IS_ENTRY) {
|
||||
fixedStyle += 'const __sheets__ = [...document.adoptedStyleSheets];\n'
|
||||
}
|
||||
|
||||
try {
|
||||
code = Es.transformSync(code).code || ''
|
||||
} catch (e) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "fite",
|
||||
"type": "module",
|
||||
"version": "0.9.0",
|
||||
"version": "0.9.1",
|
||||
"bin": {
|
||||
"fite": "index.js"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue