@animus-ui/vite-plugin 0.1.11 → 0.1.13

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.
@@ -1,29 +1,8 @@
1
1
  import type { PluginContext } from './context';
2
2
  import type { HtmlTagDescriptor } from 'vite';
3
3
  /**
4
- * transformIndexHtml: build the head-prepend tag set.
5
- *
6
- * Three independent tags, all delivery-only:
7
- * - the appearance bootstrap script, when the host build passed a
8
- * pre-generated artifact via `appearanceBootstrap` (absent otherwise);
9
- * - the `@layer` declaration style, when `buildStart` computed one;
10
- * - the HMR bridge module script, in dev only.
11
- *
12
- * The two build-time branches are guarded on non-empty CONTENT, not on mere
13
- * presence: an artifact whose `code` is empty is a caller defect, and emitting
14
- * `<script data-animus-bootstrap></script>` for it would break the
15
- * unconfigured-parity contract in spirit (a tag that does nothing) while
16
- * hiding the defect. Symmetric with `layerDeclaration`. The bridge has no
17
- * content of its own — it is a `src` reference — so its only guard is the mode.
18
- *
19
- * Ordering: every descriptor rides the same `head-prepend` bucket, which Vite
20
- * serializes in array order (`serializeTags`) and splices in immediately after
21
- * `<head>`. The bootstrap script is therefore FIRST in the array so it runs
22
- * before the layer declaration and — since built stylesheet links are appended
23
- * at `</head>` — before any stylesheet reference.
24
- *
25
- * With neither build-time input set, a production build emits no tag,
26
- * attribute, or whitespace of its own.
4
+ * Vite serializes one `head-prepend` bucket in array order, so the bootstrap
5
+ * script precedes the layer declaration and every stylesheet reference.
27
6
  */
28
7
  export declare function buildIndexHtmlTags(ctx: PluginContext): HtmlTagDescriptor[];
29
8
  //# sourceMappingURL=index-html.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-html.d.ts","sourceRoot":"","sources":["../src/index-html.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,aAAa,GAAG,iBAAiB,EAAE,CAyD1E"}
1
+ {"version":3,"file":"index-html.d.ts","sourceRoot":"","sources":["../src/index-html.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AAE9C;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,aAAa,GAAG,iBAAiB,EAAE,CAqC1E"}