diff --git a/lib/compile-vue.js b/lib/compile-vue.js index 7cdd547..9465c8e 100644 --- a/lib/compile-vue.js +++ b/lib/compile-vue.js @@ -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) { diff --git a/package.json b/package.json index 0b41e7d..6ac79c7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fite", "type": "module", - "version": "0.9.0", + "version": "0.9.1", "bin": { "fite": "index.js" },