@analogjs/vite-plugin-angular 3.0.0-alpha.5 → 3.0.0-alpha.51
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 +30 -0
- package/migrations/migrate-setup-vitest/migrate-setup-vitest.d.ts +2 -0
- package/migrations/migrate-setup-vitest/migrate-setup-vitest.js +49 -0
- package/migrations/migrate-setup-vitest/migrate-setup-vitest.js.map +1 -0
- package/migrations/migration.json +7 -1
- package/migrations/migrations.json +9 -0
- package/migrations/update-3-0-0/migrate-setup-vitest.d.ts +2 -0
- package/migrations/update-3-0-0/migrate-setup-vitest.js +36 -0
- package/migrations/update-3-0-0/migrate-setup-vitest.js.map +1 -0
- package/package.json +41 -12
- package/src/index.d.ts +3 -2
- package/src/index.js +6 -2
- package/src/index.js.map +1 -1
- package/src/lib/angular-build-optimizer-plugin.d.ts +4 -4
- package/src/lib/angular-build-optimizer-plugin.js +48 -62
- package/src/lib/angular-build-optimizer-plugin.js.map +1 -1
- package/src/lib/angular-jit-plugin.d.ts +3 -3
- package/src/lib/angular-jit-plugin.js +39 -37
- package/src/lib/angular-jit-plugin.js.map +1 -1
- package/src/lib/angular-pending-tasks.plugin.d.ts +7 -7
- package/src/lib/angular-pending-tasks.plugin.js +17 -18
- package/src/lib/angular-pending-tasks.plugin.js.map +1 -1
- package/src/lib/angular-vite-plugin.d.ts +180 -44
- package/src/lib/angular-vite-plugin.js +1233 -969
- package/src/lib/angular-vite-plugin.js.map +1 -1
- package/src/lib/angular-vitest-plugin.d.ts +19 -15
- package/src/lib/angular-vitest-plugin.js +99 -114
- package/src/lib/angular-vitest-plugin.js.map +1 -1
- package/src/lib/compilation-api/compilation-api-plugin.d.ts +29 -0
- package/src/lib/compilation-api/compilation-api-plugin.js +480 -0
- package/src/lib/compilation-api/compilation-api-plugin.js.map +1 -0
- package/src/lib/compilation-api/index.d.ts +1 -0
- package/src/lib/compilation-api/index.js +1 -0
- package/src/lib/compiler/angular-version.d.ts +19 -0
- package/src/lib/compiler/angular-version.js +16 -0
- package/src/lib/compiler/angular-version.js.map +1 -0
- package/src/lib/compiler/class-field-lowering.d.ts +23 -0
- package/src/lib/compiler/class-field-lowering.js +131 -0
- package/src/lib/compiler/class-field-lowering.js.map +1 -0
- package/src/lib/compiler/compile.d.ts +44 -0
- package/src/lib/compiler/compile.js +731 -0
- package/src/lib/compiler/compile.js.map +1 -0
- package/src/lib/compiler/constants.d.ts +18 -0
- package/src/lib/compiler/constants.js +52 -0
- package/src/lib/compiler/constants.js.map +1 -0
- package/src/lib/compiler/debug.d.ts +22 -0
- package/src/lib/compiler/debug.js +20 -0
- package/src/lib/compiler/debug.js.map +1 -0
- package/src/lib/compiler/defer.d.ts +57 -0
- package/src/lib/compiler/defer.js +154 -0
- package/src/lib/compiler/defer.js.map +1 -0
- package/src/lib/compiler/dts-reader.d.ts +35 -0
- package/src/lib/compiler/dts-reader.js +365 -0
- package/src/lib/compiler/dts-reader.js.map +1 -0
- package/src/lib/compiler/hmr.d.ts +16 -0
- package/src/lib/compiler/hmr.js +69 -0
- package/src/lib/compiler/hmr.js.map +1 -0
- package/src/lib/compiler/index.d.ts +7 -0
- package/src/lib/compiler/index.js +7 -0
- package/src/lib/compiler/jit-metadata.d.ts +14 -0
- package/src/lib/compiler/jit-metadata.js +146 -0
- package/src/lib/compiler/jit-metadata.js.map +1 -0
- package/src/lib/compiler/jit-transform.d.ts +24 -0
- package/src/lib/compiler/jit-transform.js +200 -0
- package/src/lib/compiler/jit-transform.js.map +1 -0
- package/src/lib/compiler/js-emitter.d.ts +10 -0
- package/src/lib/compiler/js-emitter.js +445 -0
- package/src/lib/compiler/js-emitter.js.map +1 -0
- package/src/lib/compiler/metadata.d.ts +45 -0
- package/src/lib/compiler/metadata.js +633 -0
- package/src/lib/compiler/metadata.js.map +1 -0
- package/src/lib/compiler/registry.d.ts +49 -0
- package/src/lib/compiler/registry.js +164 -0
- package/src/lib/compiler/registry.js.map +1 -0
- package/src/lib/compiler/resource-inliner.d.ts +21 -0
- package/src/lib/compiler/resource-inliner.js +152 -0
- package/src/lib/compiler/resource-inliner.js.map +1 -0
- package/src/lib/compiler/style-ast.d.ts +8 -0
- package/src/lib/compiler/style-ast.js +54 -0
- package/src/lib/compiler/style-ast.js.map +1 -0
- package/src/lib/compiler/styles.d.ts +13 -0
- package/src/lib/compiler/test-helpers.d.ts +7 -0
- package/src/lib/compiler/type-elision.d.ts +26 -0
- package/src/lib/compiler/type-elision.js +211 -0
- package/src/lib/compiler/type-elision.js.map +1 -0
- package/src/lib/compiler/utils.d.ts +10 -0
- package/src/lib/compiler/utils.js +35 -0
- package/src/lib/compiler/utils.js.map +1 -0
- package/src/lib/compiler-plugin.d.ts +11 -11
- package/src/lib/compiler-plugin.js +43 -44
- package/src/lib/compiler-plugin.js.map +1 -1
- package/src/lib/component-resolvers.d.ts +23 -5
- package/src/lib/component-resolvers.js +153 -63
- package/src/lib/component-resolvers.js.map +1 -1
- package/src/lib/encapsulation-plugin.d.ts +13 -0
- package/src/lib/encapsulation-plugin.js +48 -0
- package/src/lib/encapsulation-plugin.js.map +1 -0
- package/src/lib/fast-compile-plugin.d.ts +28 -0
- package/src/lib/fast-compile-plugin.js +289 -0
- package/src/lib/fast-compile-plugin.js.map +1 -0
- package/src/lib/host.d.ts +10 -8
- package/src/lib/host.js +113 -101
- package/src/lib/host.js.map +1 -1
- package/src/lib/live-reload-plugin.d.ts +5 -5
- package/src/lib/live-reload-plugin.js +61 -62
- package/src/lib/live-reload-plugin.js.map +1 -1
- package/src/lib/models.d.ts +9 -9
- package/src/lib/nx-folder-plugin.d.ts +5 -5
- package/src/lib/nx-folder-plugin.js +18 -16
- package/src/lib/nx-folder-plugin.js.map +1 -1
- package/src/lib/plugins/file-replacements.plugin.d.ts +4 -4
- package/src/lib/plugins/file-replacements.plugin.js +40 -62
- package/src/lib/plugins/file-replacements.plugin.js.map +1 -1
- package/src/lib/router-plugin.d.ts +1 -1
- package/src/lib/router-plugin.js +23 -23
- package/src/lib/router-plugin.js.map +1 -1
- package/src/lib/style-pipeline.d.ts +15 -0
- package/src/lib/style-pipeline.js +31 -0
- package/src/lib/style-pipeline.js.map +1 -0
- package/src/lib/style-preprocessor.d.ts +35 -0
- package/src/lib/style-preprocessor.js +35 -0
- package/src/lib/style-preprocessor.js.map +1 -0
- package/src/lib/stylesheet-registry.d.ts +73 -0
- package/src/lib/stylesheet-registry.js +168 -0
- package/src/lib/stylesheet-registry.js.map +1 -0
- package/src/lib/tailwind-plugin.d.ts +34 -0
- package/src/lib/tailwind-plugin.js +116 -0
- package/src/lib/tailwind-plugin.js.map +1 -0
- package/src/lib/template-class-binding-guard-plugin.d.ts +30 -0
- package/src/lib/template-class-binding-guard-plugin.js +237 -0
- package/src/lib/template-class-binding-guard-plugin.js.map +1 -0
- package/src/lib/tools/package.json +2 -7
- package/src/lib/tools/src/builders/vite/vite-build.impl.js +31 -38
- package/src/lib/tools/src/builders/vite/vite-build.impl.js.map +1 -1
- package/src/lib/tools/src/builders/vite-dev-server/dev-server.impl.js +51 -62
- package/src/lib/tools/src/builders/vite-dev-server/dev-server.impl.js.map +1 -1
- package/src/lib/tools/src/index.js +0 -2
- package/src/lib/utils/compilation-shared.d.ts +58 -0
- package/src/lib/utils/compilation-shared.js +133 -0
- package/src/lib/utils/compilation-shared.js.map +1 -0
- package/src/lib/utils/compiler-plugin-options.d.ts +11 -11
- package/src/lib/utils/debug-harness.d.ts +23 -0
- package/src/lib/utils/debug-harness.js +88 -0
- package/src/lib/utils/debug-harness.js.map +1 -0
- package/src/lib/utils/debug-log-file.d.ts +5 -0
- package/src/lib/utils/debug-log-file.js +56 -0
- package/src/lib/utils/debug-log-file.js.map +1 -0
- package/src/lib/utils/debug.d.ts +28 -0
- package/src/lib/utils/debug.js +39 -0
- package/src/lib/utils/debug.js.map +1 -0
- package/src/lib/utils/devkit.d.ts +6 -6
- package/src/lib/utils/devkit.js +34 -38
- package/src/lib/utils/devkit.js.map +1 -1
- package/src/lib/utils/hmr-candidates.d.ts +28 -28
- package/src/lib/utils/plugin-config.d.ts +37 -0
- package/src/lib/utils/plugin-config.js +71 -0
- package/src/lib/utils/plugin-config.js.map +1 -0
- package/src/lib/utils/rolldown.d.ts +2 -0
- package/src/lib/utils/rolldown.js +12 -0
- package/src/lib/utils/rolldown.js.map +1 -0
- package/src/lib/utils/safe-module-paths.d.ts +16 -0
- package/src/lib/utils/safe-module-paths.js +29 -0
- package/src/lib/utils/safe-module-paths.js.map +1 -0
- package/src/lib/utils/source-file-cache.d.ts +8 -15
- package/src/lib/utils/source-file-cache.js +35 -37
- package/src/lib/utils/source-file-cache.js.map +1 -1
- package/src/lib/utils/tailwind-reference.d.ts +12 -0
- package/src/lib/utils/tailwind-reference.js +99 -0
- package/src/lib/utils/tailwind-reference.js.map +1 -0
- package/src/lib/utils/tsconfig-resolver.d.ts +28 -0
- package/src/lib/utils/tsconfig-resolver.js +191 -0
- package/src/lib/utils/tsconfig-resolver.js.map +1 -0
- package/src/lib/utils/virtual-ids.d.ts +4 -0
- package/src/lib/utils/virtual-ids.js +23 -0
- package/src/lib/utils/virtual-ids.js.map +1 -0
- package/src/lib/utils/virtual-resources.d.ts +19 -0
- package/src/lib/utils/virtual-resources.js +38 -0
- package/src/lib/utils/virtual-resources.js.map +1 -0
- package/src/lib/virtual-modules-plugin.d.ts +5 -0
- package/src/lib/virtual-modules-plugin.js +23 -0
- package/src/lib/virtual-modules-plugin.js.map +1 -0
- package/src/test-setup.d.ts +2 -0
- package/setup-vitest.d.ts +0 -4
- package/setup-vitest.js +0 -215
- package/setup-vitest.js.map +0 -1
- package/src/lib/models.js +0 -1
- package/src/lib/models.js.map +0 -1
- package/src/lib/tools/README.md +0 -3
- package/src/lib/tools/src/index.d.ts +0 -0
- package/src/lib/tools/src/index.js.map +0 -1
- package/src/lib/utils/compiler-plugin-options.js +0 -1
- package/src/lib/utils/compiler-plugin-options.js.map +0 -1
- package/src/lib/utils/hmr-candidates.js +0 -272
- package/src/lib/utils/hmr-candidates.js.map +0 -1
|
@@ -1,48 +1,184 @@
|
|
|
1
|
-
import { NgtscProgram } from
|
|
2
|
-
import * as ts from
|
|
3
|
-
import { Plugin } from
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
1
|
+
import { NgtscProgram } from "@angular/compiler-cli";
|
|
2
|
+
import * as ts from "typescript";
|
|
3
|
+
import { ModuleNode, Plugin, ViteDevServer } from "vite";
|
|
4
|
+
import type { StylePreprocessor } from "./style-preprocessor.js";
|
|
5
|
+
import { type DebugOption } from "./utils/debug.js";
|
|
6
|
+
import { FileReplacement } from "./plugins/file-replacements.plugin.js";
|
|
7
|
+
import { AnalogStylesheetRegistry } from "./stylesheet-registry.js";
|
|
8
|
+
import { AngularStylePipelineOptions } from "./style-pipeline.js";
|
|
9
|
+
export { DiagnosticModes, injectViteIgnoreForHmrMetadata, isIgnoredHmrFile, toAngularCompilationFileReplacements, mapTemplateUpdatesToFiles, refreshStylesheetRegistryForFile, describeStylesheetContent, isTestWatchMode } from "./utils/compilation-shared.js";
|
|
10
|
+
export { findStaticClassAndBoundClassConflicts, findBoundClassAndNgClassConflicts } from "./template-class-binding-guard-plugin.js";
|
|
11
|
+
export { buildStylePreprocessor } from "./tailwind-plugin.js";
|
|
12
12
|
export interface PluginOptions {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
13
|
+
tsconfig?: string | (() => string);
|
|
14
|
+
workspaceRoot?: string;
|
|
15
|
+
inlineStylesExtension?: string;
|
|
16
|
+
jit?: boolean;
|
|
17
|
+
advanced?: {
|
|
18
|
+
/**
|
|
19
|
+
* Custom TypeScript transformers that are run before Angular compilation
|
|
20
|
+
*/
|
|
21
|
+
tsTransformers?: ts.CustomTransformers;
|
|
22
|
+
};
|
|
23
|
+
supportedBrowsers?: string[];
|
|
24
|
+
transformFilter?: (code: string, id: string) => boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Additional files to include in compilation
|
|
27
|
+
*/
|
|
28
|
+
include?: string[];
|
|
29
|
+
additionalContentDirs?: string[];
|
|
30
|
+
/**
|
|
31
|
+
* Enables Analog's Angular live-reload/HMR pipeline during development/watch mode.
|
|
32
|
+
*
|
|
33
|
+
* This is separate from Vite's `server.hmr` option, which configures the
|
|
34
|
+
* HMR client transport.
|
|
35
|
+
*
|
|
36
|
+
* Defaults to `true` for watch mode. Set to `false` to disable Angular
|
|
37
|
+
* reload updates while keeping other stylesheet externalization behavior
|
|
38
|
+
* available when needed.
|
|
39
|
+
*/
|
|
40
|
+
liveReload?: boolean;
|
|
41
|
+
disableTypeChecking?: boolean;
|
|
42
|
+
fileReplacements?: FileReplacement[];
|
|
43
|
+
/**
|
|
44
|
+
* Opt into the fast compile path. Skips Angular's template type-checking
|
|
45
|
+
* and routes compilation through an internal single-pass transform.
|
|
46
|
+
* Defaults to `false`.
|
|
47
|
+
*/
|
|
48
|
+
fastCompile?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Compilation output mode used when `fastCompile` is enabled.
|
|
51
|
+
* - `'full'` (default): Emit final Ivy definitions for application builds.
|
|
52
|
+
* - `'partial'`: Emit partial declarations for library publishing.
|
|
53
|
+
*/
|
|
54
|
+
fastCompileMode?: "full" | "partial";
|
|
55
|
+
experimental?: {
|
|
56
|
+
useAngularCompilationAPI?: boolean;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Enable debug logging for specific scopes.
|
|
60
|
+
*
|
|
61
|
+
* - `true` → enables all `analog:angular:*` scopes
|
|
62
|
+
* - `string[]` → enables listed namespaces (e.g. `['analog:angular:tailwind']`)
|
|
63
|
+
* - `{ scopes?, mode? }` → object form with optional `mode: 'build' | 'dev'`
|
|
64
|
+
* to restrict output to a specific Vite command (omit for both)
|
|
65
|
+
*
|
|
66
|
+
* Also responds to the `DEBUG` env var (Node.js) or `localStorage.debug`
|
|
67
|
+
* (browser), using the `obug` convention.
|
|
68
|
+
*/
|
|
69
|
+
debug?: DebugOption;
|
|
70
|
+
/**
|
|
71
|
+
* Optional preprocessor that transforms component CSS before it enters Vite's
|
|
72
|
+
* preprocessCSS pipeline. Runs on every component stylesheet (both external
|
|
73
|
+
* `.component.css` files and inline `styles: [...]` blocks).
|
|
74
|
+
*
|
|
75
|
+
* @param code - Raw CSS content of the component stylesheet
|
|
76
|
+
* @param filename - Resolved file path of the stylesheet (or containing .ts file for inline styles)
|
|
77
|
+
* @returns Transformed CSS string, or the original code if no transformation is needed
|
|
78
|
+
*/
|
|
79
|
+
stylePreprocessor?: StylePreprocessor;
|
|
80
|
+
/**
|
|
81
|
+
* Experimental Angular stylesheet-resource hooks for community-maintained
|
|
82
|
+
* style-pipeline plugins.
|
|
83
|
+
*
|
|
84
|
+
* These hooks run inside the Angular resource pipeline, which is the seam a
|
|
85
|
+
* standalone Vite plugin cannot own on its own.
|
|
86
|
+
*/
|
|
87
|
+
stylePipeline?: AngularStylePipelineOptions;
|
|
88
|
+
/**
|
|
89
|
+
* First-class Tailwind CSS v4 integration for Angular component styles.
|
|
90
|
+
*
|
|
91
|
+
* Angular's compiler processes component CSS through Vite's `preprocessCSS()`,
|
|
92
|
+
* which runs `@tailwindcss/vite` — but each component stylesheet is processed
|
|
93
|
+
* in isolation without access to the root Tailwind configuration (prefix, @theme,
|
|
94
|
+
* @custom-variant, @plugin definitions). This causes errors like:
|
|
95
|
+
*
|
|
96
|
+
* "Cannot apply utility class `sa:grid` because the `sa` variant does not exist"
|
|
97
|
+
*
|
|
98
|
+
* The `tailwindCss` option solves this by auto-injecting a `@reference` directive
|
|
99
|
+
* into every component CSS file that uses Tailwind utilities, pointing it to the
|
|
100
|
+
* root Tailwind stylesheet so `@tailwindcss/vite` can resolve the full configuration.
|
|
101
|
+
*
|
|
102
|
+
* @example Basic usage — reference a root Tailwind CSS file:
|
|
103
|
+
* ```ts
|
|
104
|
+
* import { resolve } from 'node:path';
|
|
105
|
+
*
|
|
106
|
+
* angular({
|
|
107
|
+
* tailwindCss: {
|
|
108
|
+
* rootStylesheet: resolve(__dirname, 'src/styles/tailwind.css'),
|
|
109
|
+
* },
|
|
110
|
+
* })
|
|
111
|
+
* ```
|
|
112
|
+
*
|
|
113
|
+
* @example With prefix detection — only inject for files using specific prefixes:
|
|
114
|
+
* ```ts
|
|
115
|
+
* angular({
|
|
116
|
+
* tailwindCss: {
|
|
117
|
+
* rootStylesheet: resolve(__dirname, 'src/styles/tailwind.css'),
|
|
118
|
+
* // Only inject @reference into files that use these prefixed classes
|
|
119
|
+
* prefixes: ['sa:', 'tw:'],
|
|
120
|
+
* },
|
|
121
|
+
* })
|
|
122
|
+
* ```
|
|
123
|
+
*
|
|
124
|
+
* @example AnalogJS platform — passed through the `vite` option:
|
|
125
|
+
* ```ts
|
|
126
|
+
* analog({
|
|
127
|
+
* vite: {
|
|
128
|
+
* tailwindCss: {
|
|
129
|
+
* rootStylesheet: resolve(__dirname, '../../../libs/meritos/tailwind.config.css'),
|
|
130
|
+
* },
|
|
131
|
+
* },
|
|
132
|
+
* })
|
|
133
|
+
* ```
|
|
134
|
+
*/
|
|
135
|
+
tailwindCss?: {
|
|
136
|
+
/**
|
|
137
|
+
* Absolute path to the root Tailwind CSS file that contains `@import "tailwindcss"`,
|
|
138
|
+
* `@theme`, `@custom-variant`, and `@plugin` definitions.
|
|
139
|
+
*
|
|
140
|
+
* A `@reference` directive pointing to this file will be auto-injected into
|
|
141
|
+
* component CSS files that use Tailwind utilities.
|
|
142
|
+
*/
|
|
143
|
+
rootStylesheet: string;
|
|
144
|
+
/**
|
|
145
|
+
* Optional list of class prefixes to detect (e.g. `['sa:', 'tw:']`).
|
|
146
|
+
* When provided, `@reference` is only injected into component CSS files that
|
|
147
|
+
* contain at least one of these prefixes. When omitted, `@reference` is injected
|
|
148
|
+
* into all component CSS files that contain `@apply` or `@` directives.
|
|
149
|
+
*
|
|
150
|
+
* @default undefined — inject into all component CSS files with `@apply`
|
|
151
|
+
*/
|
|
152
|
+
prefixes?: string[];
|
|
153
|
+
};
|
|
36
154
|
}
|
|
155
|
+
export declare function evictDeletedFileMetadata(file: string, { removeActiveGraphMetadata, removeStyleOwnerMetadata, classNamesMap, fileTransformMap }: {
|
|
156
|
+
removeActiveGraphMetadata: (file: string) => void;
|
|
157
|
+
removeStyleOwnerMetadata: (file: string) => void;
|
|
158
|
+
classNamesMap: Map<string, string>;
|
|
159
|
+
fileTransformMap: Map<string, string>;
|
|
160
|
+
}): void;
|
|
37
161
|
export declare function angular(options?: PluginOptions): Plugin[];
|
|
38
|
-
export declare function
|
|
39
|
-
errors?: string[];
|
|
40
|
-
warnings?: (string | ts.DiagnosticMessageChain)[];
|
|
41
|
-
hmrUpdateCode?: string | null;
|
|
42
|
-
hmrEligible?: boolean;
|
|
43
|
-
};
|
|
162
|
+
export declare function createFsWatcherCacheInvalidator(invalidateFsCaches: () => void, invalidateTsconfigCaches: () => void, performCompilation: () => Promise<void>): () => Promise<void>;
|
|
44
163
|
/**
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
164
|
+
* Returns every live Vite module that can legitimately represent a changed
|
|
165
|
+
* Angular resource file.
|
|
166
|
+
*
|
|
167
|
+
* For normal files, `getModulesByFile()` is enough. For Angular component
|
|
168
|
+
* stylesheets, it is not: the browser often holds virtual hashed requests
|
|
169
|
+
* (`/abc123.css?direct&ngcomp=...` and `/abc123.css?ngcomp=...`) that are no
|
|
170
|
+
* longer discoverable from the original source path alone. We therefore merge:
|
|
171
|
+
* - watcher event modules
|
|
172
|
+
* - module-graph modules by source file
|
|
173
|
+
* - registry-tracked live request ids resolved back through the module graph
|
|
174
|
+
*/
|
|
175
|
+
export declare function getModulesForChangedFile(server: ViteDevServer, file: string, eventModules?: readonly ModuleNode[], stylesheetRegistry?: AnalogStylesheetRegistry): Promise<ModuleNode[]>;
|
|
176
|
+
export declare function isModuleForChangedResource(mod: ModuleNode, changedFile: string, stylesheetRegistry?: AnalogStylesheetRegistry): boolean;
|
|
177
|
+
export declare function findComponentStylesheetWrapperModules(server: ViteDevServer, changedFile: string, directModule: ModuleNode, fileModules: ModuleNode[], stylesheetRegistry?: AnalogStylesheetRegistry): Promise<ModuleNode[]>;
|
|
178
|
+
export declare function findTemplateOwnerModules(server: ViteDevServer, resourceFile: string): ModuleNode[];
|
|
179
|
+
export declare function getFileMetadata(program: ts.BuilderProgram, angularCompiler?: NgtscProgram["compiler"], hmrEnabled?: boolean, disableTypeChecking?: boolean): (file: string) => {
|
|
180
|
+
errors?: string[];
|
|
181
|
+
warnings?: (string | ts.DiagnosticMessageChain)[];
|
|
182
|
+
hmrUpdateCode?: string | null;
|
|
183
|
+
hmrEligible?: boolean;
|
|
184
|
+
};
|