@marko/vite 2.4.8 → 2.4.9
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.
|
@@ -7,6 +7,14 @@ static function renderAssets(slot) {
|
|
|
7
7
|
const lastWrittenEntry = this[slotWrittenEntriesKey] || 0;
|
|
8
8
|
const writtenEntries = (this[slotWrittenEntriesKey] = entries.length);
|
|
9
9
|
|
|
10
|
+
if(this.___viteBasePath && !this.___flushedMBP && slot !== "head-prepend") {
|
|
11
|
+
this.___flushedMBP = true;
|
|
12
|
+
|
|
13
|
+
html += `<script${this.___viteInjectAttrs}>${
|
|
14
|
+
this.___viteBaseVar
|
|
15
|
+
}=${JSON.stringify(this.___viteBasePath)}</script>`
|
|
16
|
+
}
|
|
17
|
+
|
|
10
18
|
for (let i = lastWrittenEntry; i < writtenEntries; i++) {
|
|
11
19
|
let entry = entries[i];
|
|
12
20
|
|
|
@@ -62,11 +70,5 @@ $ if (!out.global.___viteRenderAssets) {
|
|
|
62
70
|
}
|
|
63
71
|
|
|
64
72
|
<__flush_here_and_after__>
|
|
65
|
-
<if(input.base && !out.global.___flushedMBP)>
|
|
66
|
-
$ out.global.___flushedMBP = true;
|
|
67
|
-
$!{`<script${out.global.___viteInjectAttrs}>${
|
|
68
|
-
out.global.___viteBaseVar
|
|
69
|
-
}=${JSON.stringify(input.base)}</script>`}
|
|
70
|
-
</if>
|
|
71
73
|
$!{out.global.___viteRenderAssets(input.slot)}
|
|
72
74
|
</__flush_here_and_after__>
|