@marko/vite 2.3.13 → 2.3.14

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.
@@ -4,9 +4,8 @@ var server_entry_template_default = async (opts) => {
4
4
  const fileNameStr = JSON.stringify(`./${path.basename(opts.fileName)}`);
5
5
  return `import template from ${fileNameStr};
6
6
  export * from ${fileNameStr};
7
- $ const $global = out.global;
8
- ${opts.runtimeId ? `$ $global.runtimeId = ${JSON.stringify(opts.runtimeId)};
9
- ` : ""}$ ($global.___viteEntries || ($global.___viteEntries = [])).push(${opts.entryData});
7
+ ${opts.runtimeId ? `$ out.global.runtimeId = ${JSON.stringify(opts.runtimeId)};
8
+ ` : ""}$ (out.global.___viteEntries || (out.global.___viteEntries = [])).push(${opts.entryData});
10
9
  <_vite slot="head-prepend"/>
11
10
  <_vite slot="head"/>
12
11
  <_vite slot="body-prepend"/>
@@ -21,14 +21,13 @@ static function renderAssets(slot) {
21
21
 
22
22
  return html;
23
23
  }
24
- $ const $global = out.global;
25
- $ if (!$global.___viteRenderAssets) {
26
- $global.___viteInjectAttrs = $global.cspNonce
27
- ? ` nonce="${$global.cspNonce.replace(/"/g, "&#39;")}"`
24
+ $ if (!out.global.___viteRenderAssets) {
25
+ out.global.___viteInjectAttrs = out.global.cspNonce
26
+ ? ` nonce="${out.global.cspNonce.replace(/"/g, "&#39;")}"`
28
27
  : "";
29
- $global.___viteRenderAssets = renderAssets;
28
+ out.global.___viteRenderAssets = renderAssets;
30
29
  }
31
30
 
32
31
  <__flush_here_and_after__>
33
- $!{$global.___viteRenderAssets(input.slot)}
32
+ $!{out.global.___viteRenderAssets(input.slot)}
34
33
  </__flush_here_and_after__>
package/dist/index.mjs CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  import "./chunk-VL2HLMVE.mjs";
9
9
  import {
10
10
  server_entry_template_default
11
- } from "./chunk-HWRQJHCN.mjs";
11
+ } from "./chunk-EYX7LIK3.mjs";
12
12
  import "./chunk-KIYHBIE6.mjs";
13
13
  import {
14
14
  MemoryStore
@@ -36,9 +36,8 @@ var server_entry_template_default = async (opts) => {
36
36
  const fileNameStr = JSON.stringify(`./${import_path.default.basename(opts.fileName)}`);
37
37
  return `import template from ${fileNameStr};
38
38
  export * from ${fileNameStr};
39
- $ const $global = out.global;
40
- ${opts.runtimeId ? `$ $global.runtimeId = ${JSON.stringify(opts.runtimeId)};
41
- ` : ""}$ ($global.___viteEntries || ($global.___viteEntries = [])).push(${opts.entryData});
39
+ ${opts.runtimeId ? `$ out.global.runtimeId = ${JSON.stringify(opts.runtimeId)};
40
+ ` : ""}$ (out.global.___viteEntries || (out.global.___viteEntries = [])).push(${opts.entryData});
42
41
  <_vite slot="head-prepend"/>
43
42
  <_vite slot="head"/>
44
43
  <_vite slot="body-prepend"/>
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  server_entry_template_default
3
- } from "./chunk-HWRQJHCN.mjs";
3
+ } from "./chunk-EYX7LIK3.mjs";
4
4
  export {
5
5
  server_entry_template_default as default
6
6
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@marko/vite",
3
3
  "description": "A Marko plugin for Vite",
4
- "version": "2.3.13",
4
+ "version": "2.3.14",
5
5
  "author": "Dylan Piercey <dpiercey@ebay.com>",
6
6
  "bugs": "https://github.com/marko-js/vite/issues",
7
7
  "dependencies": {