@marko/vite 4.1.15 → 4.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +9 -7
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -62,7 +62,7 @@ function renderAssets(slot) {
|
|
|
62
62
|
html += "document.documentElement.style.visibility='';";
|
|
63
63
|
html +=
|
|
64
64
|
"if(document.documentElement.getAttribute('style')==='')document.documentElement.removeAttribute('style');";
|
|
65
|
-
html +=
|
|
65
|
+
html += \`</script><script class=marko-vite-preload\${this.___viteInjectAttrs}>document.documentElement.style.visibility='hidden'</script>\`;
|
|
66
66
|
}
|
|
67
67
|
}`}
|
|
68
68
|
|
|
@@ -794,12 +794,14 @@ function markoPlugin(opts = {}) {
|
|
|
794
794
|
});
|
|
795
795
|
}
|
|
796
796
|
const optimizeDeps = config.optimizeDeps ??= {};
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
797
|
+
if (!isTest) {
|
|
798
|
+
optimizeDeps.entries ??= [
|
|
799
|
+
"**/*.marko",
|
|
800
|
+
"!**/__snapshots__/**",
|
|
801
|
+
`!**/__tests__/**`,
|
|
802
|
+
`!**/coverage/**`
|
|
803
|
+
];
|
|
804
|
+
}
|
|
803
805
|
const domDeps = compiler.getRuntimeEntryFiles("dom", opts.translator);
|
|
804
806
|
optimizeDeps.include = optimizeDeps.include ? [...optimizeDeps.include, ...domDeps] : domDeps;
|
|
805
807
|
const optimizeExtensions = optimizeDeps.extensions ??= [];
|
package/package.json
CHANGED