@animus-ui/vite-plugin 0.1.11 → 0.1.12
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/README.md +1 -0
- package/dist/build-start.d.ts +2 -6
- package/dist/build-start.d.ts.map +1 -1
- package/dist/config.d.ts +0 -5
- package/dist/config.d.ts.map +1 -1
- package/dist/constants.d.ts +4 -16
- package/dist/constants.d.ts.map +1 -1
- package/dist/context.d.ts +54 -233
- package/dist/context.d.ts.map +1 -1
- package/dist/css.d.ts +0 -6
- package/dist/css.d.ts.map +1 -1
- package/dist/hmr.d.ts +2 -19
- package/dist/hmr.d.ts.map +1 -1
- package/dist/hot-update-events.d.ts +14 -44
- package/dist/hot-update-events.d.ts.map +1 -1
- package/dist/index-html.d.ts +2 -23
- package/dist/index-html.d.ts.map +1 -1
- package/dist/index.cjs +315 -622
- package/dist/index.d.ts +25 -92
- package/dist/index.d.ts.map +1 -1
- package/dist/module-invalidation.d.ts +2 -10
- package/dist/module-invalidation.d.ts.map +1 -1
- package/dist/rediscovery.d.ts +6 -24
- package/dist/rediscovery.d.ts.map +1 -1
- package/dist/reset-coalescer.d.ts +6 -8
- package/dist/reset-coalescer.d.ts.map +1 -1
- package/dist/transform.d.ts +2 -16
- package/dist/transform.d.ts.map +1 -1
- package/dist/virtual-modules.d.ts +0 -3
- package/dist/virtual-modules.d.ts.map +1 -1
- package/package.json +7 -4
package/dist/index-html.d.ts
CHANGED
|
@@ -1,29 +1,8 @@
|
|
|
1
1
|
import type { PluginContext } from './context';
|
|
2
2
|
import type { HtmlTagDescriptor } from 'vite';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
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
|
package/dist/index-html.d.ts.map
CHANGED
|
@@ -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
|
|
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"}
|