@nativescript/vite 8.0.0-alpha.1 → 8.0.0-alpha.11
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/configuration/angular.d.ts +1 -1
- package/configuration/angular.js +486 -140
- package/configuration/angular.js.map +1 -1
- package/configuration/base.js +159 -29
- package/configuration/base.js.map +1 -1
- package/configuration/javascript.js +3 -3
- package/configuration/javascript.js.map +1 -1
- package/configuration/solid.js +27 -0
- package/configuration/solid.js.map +1 -1
- package/configuration/typescript.js +4 -4
- package/configuration/typescript.js.map +1 -1
- package/helpers/angular/angular-linker.js +38 -42
- package/helpers/angular/angular-linker.js.map +1 -1
- package/helpers/angular/inject-component-hmr-registration.d.ts +112 -0
- package/helpers/angular/inject-component-hmr-registration.js +359 -0
- package/helpers/angular/inject-component-hmr-registration.js.map +1 -0
- package/helpers/angular/inline-decorator-component-templates.d.ts +3 -0
- package/helpers/angular/inline-decorator-component-templates.js +400 -0
- package/helpers/angular/inline-decorator-component-templates.js.map +1 -0
- package/helpers/angular/shared-linker.d.ts +7 -0
- package/helpers/angular/shared-linker.js +37 -1
- package/helpers/angular/shared-linker.js.map +1 -1
- package/helpers/angular/synthesize-decorator-ctor-parameters.d.ts +1 -0
- package/helpers/angular/synthesize-decorator-ctor-parameters.js +256 -0
- package/helpers/angular/synthesize-decorator-ctor-parameters.js.map +1 -0
- package/helpers/angular/synthesize-injectable-factories.d.ts +3 -0
- package/helpers/angular/synthesize-injectable-factories.js +414 -0
- package/helpers/angular/synthesize-injectable-factories.js.map +1 -0
- package/helpers/angular/util.d.ts +1 -0
- package/helpers/angular/util.js +88 -0
- package/helpers/angular/util.js.map +1 -1
- package/helpers/commonjs-plugins.d.ts +5 -2
- package/helpers/commonjs-plugins.js +126 -0
- package/helpers/commonjs-plugins.js.map +1 -1
- package/helpers/config-as-json.js +10 -0
- package/helpers/config-as-json.js.map +1 -1
- package/helpers/esbuild-platform-resolver.js +5 -5
- package/helpers/esbuild-platform-resolver.js.map +1 -1
- package/helpers/external-configs.d.ts +9 -1
- package/helpers/external-configs.js +31 -6
- package/helpers/external-configs.js.map +1 -1
- package/helpers/global-defines.d.ts +51 -0
- package/helpers/global-defines.js +77 -0
- package/helpers/global-defines.js.map +1 -1
- package/helpers/import-meta-path.d.ts +4 -0
- package/helpers/import-meta-path.js +5 -0
- package/helpers/import-meta-path.js.map +1 -0
- package/helpers/import-specifier.d.ts +1 -0
- package/helpers/import-specifier.js +18 -0
- package/helpers/import-specifier.js.map +1 -0
- package/helpers/logging.d.ts +1 -0
- package/helpers/logging.js +63 -3
- package/helpers/logging.js.map +1 -1
- package/helpers/main-entry.d.ts +5 -2
- package/helpers/main-entry.js +375 -116
- package/helpers/main-entry.js.map +1 -1
- package/helpers/nativeclass-transform.js +8 -127
- package/helpers/nativeclass-transform.js.map +1 -1
- package/helpers/nativeclass-transformer-plugin.d.ts +19 -1
- package/helpers/nativeclass-transformer-plugin.js +318 -36
- package/helpers/nativeclass-transformer-plugin.js.map +1 -1
- package/helpers/ns-core-url.d.ts +83 -0
- package/helpers/ns-core-url.js +167 -0
- package/helpers/ns-core-url.js.map +1 -0
- package/helpers/prelink-angular.js +1 -4
- package/helpers/prelink-angular.js.map +1 -1
- package/helpers/project.d.ts +35 -0
- package/helpers/project.js +120 -2
- package/helpers/project.js.map +1 -1
- package/helpers/ts-config-paths.js +50 -2
- package/helpers/ts-config-paths.js.map +1 -1
- package/helpers/workers.d.ts +20 -19
- package/helpers/workers.js +620 -3
- package/helpers/workers.js.map +1 -1
- package/hmr/client/css-handler.js +60 -19
- package/hmr/client/css-handler.js.map +1 -1
- package/hmr/client/hmr-pending-overlay.d.ts +27 -0
- package/hmr/client/hmr-pending-overlay.js +50 -0
- package/hmr/client/hmr-pending-overlay.js.map +1 -0
- package/hmr/client/index.js +767 -24
- package/hmr/client/index.js.map +1 -1
- package/hmr/client/utils.d.ts +5 -0
- package/hmr/client/utils.js +283 -12
- package/hmr/client/utils.js.map +1 -1
- package/hmr/entry-runtime.d.ts +10 -0
- package/hmr/entry-runtime.js +330 -42
- package/hmr/entry-runtime.js.map +1 -1
- package/hmr/frameworks/angular/client/index.d.ts +3 -1
- package/hmr/frameworks/angular/client/index.js +821 -25
- package/hmr/frameworks/angular/client/index.js.map +1 -1
- package/hmr/frameworks/angular/server/linker.js +37 -6
- package/hmr/frameworks/angular/server/linker.js.map +1 -1
- package/hmr/frameworks/angular/server/strategy.js +30 -6
- package/hmr/frameworks/angular/server/strategy.js.map +1 -1
- package/hmr/frameworks/typescript/server/strategy.js +8 -2
- package/hmr/frameworks/typescript/server/strategy.js.map +1 -1
- package/hmr/frameworks/vue/client/index.js +18 -42
- package/hmr/frameworks/vue/client/index.js.map +1 -1
- package/hmr/helpers/ast-normalizer.js +22 -10
- package/hmr/helpers/ast-normalizer.js.map +1 -1
- package/hmr/helpers/cjs-named-exports.d.ts +23 -0
- package/hmr/helpers/cjs-named-exports.js +152 -0
- package/hmr/helpers/cjs-named-exports.js.map +1 -0
- package/hmr/server/constants.d.ts +1 -0
- package/hmr/server/constants.js +14 -3
- package/hmr/server/constants.js.map +1 -1
- package/hmr/server/core-sanitize.d.ts +49 -2
- package/hmr/server/core-sanitize.js +267 -24
- package/hmr/server/core-sanitize.js.map +1 -1
- package/hmr/server/import-map.d.ts +65 -0
- package/hmr/server/import-map.js +222 -0
- package/hmr/server/import-map.js.map +1 -0
- package/hmr/server/index.d.ts +2 -1
- package/hmr/server/index.js.map +1 -1
- package/hmr/server/ns-core-cjs-shape.d.ts +204 -0
- package/hmr/server/ns-core-cjs-shape.js +271 -0
- package/hmr/server/ns-core-cjs-shape.js.map +1 -0
- package/hmr/server/perf-instrumentation.d.ts +114 -0
- package/hmr/server/perf-instrumentation.js +195 -0
- package/hmr/server/perf-instrumentation.js.map +1 -0
- package/hmr/server/runtime-graph-filter.d.ts +5 -0
- package/hmr/server/runtime-graph-filter.js +21 -0
- package/hmr/server/runtime-graph-filter.js.map +1 -0
- package/hmr/server/shared-transform-request.d.ts +12 -0
- package/hmr/server/shared-transform-request.js +144 -0
- package/hmr/server/shared-transform-request.js.map +1 -0
- package/hmr/server/vite-plugin.d.ts +21 -1
- package/hmr/server/vite-plugin.js +461 -22
- package/hmr/server/vite-plugin.js.map +1 -1
- package/hmr/server/websocket-angular-entry.d.ts +2 -0
- package/hmr/server/websocket-angular-entry.js +68 -0
- package/hmr/server/websocket-angular-entry.js.map +1 -0
- package/hmr/server/websocket-angular-hot-update.d.ts +78 -0
- package/hmr/server/websocket-angular-hot-update.js +413 -0
- package/hmr/server/websocket-angular-hot-update.js.map +1 -0
- package/hmr/server/websocket-core-bridge.d.ts +21 -0
- package/hmr/server/websocket-core-bridge.js +357 -0
- package/hmr/server/websocket-core-bridge.js.map +1 -0
- package/hmr/server/websocket-graph-upsert.d.ts +21 -0
- package/hmr/server/websocket-graph-upsert.js +33 -0
- package/hmr/server/websocket-graph-upsert.js.map +1 -0
- package/hmr/server/websocket-hmr-pending.d.ts +43 -0
- package/hmr/server/websocket-hmr-pending.js +55 -0
- package/hmr/server/websocket-hmr-pending.js.map +1 -0
- package/hmr/server/websocket-module-bindings.d.ts +6 -0
- package/hmr/server/websocket-module-bindings.js +471 -0
- package/hmr/server/websocket-module-bindings.js.map +1 -0
- package/hmr/server/websocket-module-specifiers.d.ts +101 -0
- package/hmr/server/websocket-module-specifiers.js +820 -0
- package/hmr/server/websocket-module-specifiers.js.map +1 -0
- package/hmr/server/websocket-ns-m-finalize.d.ts +22 -0
- package/hmr/server/websocket-ns-m-finalize.js +88 -0
- package/hmr/server/websocket-ns-m-finalize.js.map +1 -0
- package/hmr/server/websocket-ns-m-paths.d.ts +3 -0
- package/hmr/server/websocket-ns-m-paths.js +92 -0
- package/hmr/server/websocket-ns-m-paths.js.map +1 -0
- package/hmr/server/websocket-ns-m-request.d.ts +45 -0
- package/hmr/server/websocket-ns-m-request.js +196 -0
- package/hmr/server/websocket-ns-m-request.js.map +1 -0
- package/hmr/server/websocket-runtime-compat.d.ts +19 -0
- package/hmr/server/websocket-runtime-compat.js +287 -0
- package/hmr/server/websocket-runtime-compat.js.map +1 -0
- package/hmr/server/websocket-served-module-helpers.d.ts +36 -0
- package/hmr/server/websocket-served-module-helpers.js +631 -0
- package/hmr/server/websocket-served-module-helpers.js.map +1 -0
- package/hmr/server/websocket-txn.d.ts +6 -0
- package/hmr/server/websocket-txn.js +45 -0
- package/hmr/server/websocket-txn.js.map +1 -0
- package/hmr/server/websocket-vendor-unifier.d.ts +10 -0
- package/hmr/server/websocket-vendor-unifier.js +51 -0
- package/hmr/server/websocket-vendor-unifier.js.map +1 -0
- package/hmr/server/websocket-vue-sfc.d.ts +27 -0
- package/hmr/server/websocket-vue-sfc.js +1069 -0
- package/hmr/server/websocket-vue-sfc.js.map +1 -0
- package/hmr/server/websocket.d.ts +26 -3
- package/hmr/server/websocket.js +2492 -798
- package/hmr/server/websocket.js.map +1 -1
- package/hmr/shared/package-classifier.d.ts +9 -0
- package/hmr/shared/package-classifier.js +58 -0
- package/hmr/shared/package-classifier.js.map +1 -0
- package/hmr/shared/runtime/boot-timeline.d.ts +17 -0
- package/hmr/shared/runtime/boot-timeline.js +51 -0
- package/hmr/shared/runtime/boot-timeline.js.map +1 -0
- package/hmr/shared/runtime/browser-runtime-contract.d.ts +64 -0
- package/hmr/shared/runtime/browser-runtime-contract.js +54 -0
- package/hmr/shared/runtime/browser-runtime-contract.js.map +1 -0
- package/hmr/shared/runtime/dev-overlay.d.ts +85 -0
- package/hmr/shared/runtime/dev-overlay.js +1236 -0
- package/hmr/shared/runtime/dev-overlay.js.map +1 -0
- package/hmr/shared/runtime/http-only-boot.d.ts +1 -0
- package/hmr/shared/runtime/http-only-boot.js +53 -6
- package/hmr/shared/runtime/http-only-boot.js.map +1 -1
- package/hmr/shared/runtime/module-provenance.d.ts +1 -0
- package/hmr/shared/runtime/module-provenance.js +63 -0
- package/hmr/shared/runtime/module-provenance.js.map +1 -0
- package/hmr/shared/runtime/platform-polyfills.d.ts +26 -0
- package/hmr/shared/runtime/platform-polyfills.js +122 -0
- package/hmr/shared/runtime/platform-polyfills.js.map +1 -0
- package/hmr/shared/runtime/root-placeholder.d.ts +1 -0
- package/hmr/shared/runtime/root-placeholder.js +552 -82
- package/hmr/shared/runtime/root-placeholder.js.map +1 -1
- package/hmr/shared/runtime/session-bootstrap.d.ts +1 -0
- package/hmr/shared/runtime/session-bootstrap.js +195 -0
- package/hmr/shared/runtime/session-bootstrap.js.map +1 -0
- package/hmr/shared/runtime/vendor-bootstrap.js +52 -15
- package/hmr/shared/runtime/vendor-bootstrap.js.map +1 -1
- package/hmr/shared/vendor/manifest.d.ts +37 -0
- package/hmr/shared/vendor/manifest.js +677 -57
- package/hmr/shared/vendor/manifest.js.map +1 -1
- package/hmr/shared/vendor/registry.js +104 -7
- package/hmr/shared/vendor/registry.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +5 -0
- package/index.js.map +1 -1
- package/package.json +14 -2
- package/runtime/core-aliases-early.js +94 -67
- package/runtime/core-aliases-early.js.map +1 -1
- package/shims/solid-jsx-runtime.d.ts +7 -0
- package/shims/solid-jsx-runtime.js +17 -0
- package/shims/solid-jsx-runtime.js.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"import-meta-path.js","sourceRoot":"","sources":["../../../../packages/vite/helpers/import-meta-path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAIzC,MAAM,UAAU,2BAA2B,CAAC,OAAe,EAAE,YAAoB,EAAE,OAA8B;IAChH,OAAO,aAAa,CAAC,IAAI,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;AAC/D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function toStaticImportSpecifier(projectRoot: string, filePath: string): string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import { pathToFileURL } from 'node:url';
|
|
3
|
+
function looksLikeWindowsPath(value) {
|
|
4
|
+
return /^[A-Za-z]:[\\/]/.test(value) || value.startsWith('\\\\');
|
|
5
|
+
}
|
|
6
|
+
export function toStaticImportSpecifier(projectRoot, filePath) {
|
|
7
|
+
const useWindowsPath = looksLikeWindowsPath(projectRoot) || looksLikeWindowsPath(filePath);
|
|
8
|
+
const pathApi = useWindowsPath ? path.win32 : path.posix;
|
|
9
|
+
try {
|
|
10
|
+
const relativePath = pathApi.relative(projectRoot, filePath);
|
|
11
|
+
if (relativePath && !pathApi.isAbsolute(relativePath) && !relativePath.startsWith('..')) {
|
|
12
|
+
return ('/' + relativePath.replace(/\\/g, '/')).replace(/\/+/g, '/');
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
catch { }
|
|
16
|
+
return pathToFileURL(filePath, { windows: useWindowsPath }).toString();
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=import-specifier.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"import-specifier.js","sourceRoot":"","sources":["../../../../packages/vite/helpers/import-specifier.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,SAAS,oBAAoB,CAAC,KAAa;IAC1C,OAAO,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;AAClE,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,WAAmB,EAAE,QAAgB;IAC5E,MAAM,cAAc,GAAG,oBAAoB,CAAC,WAAW,CAAC,IAAI,oBAAoB,CAAC,QAAQ,CAAC,CAAC;IAC3F,MAAM,OAAO,GAAG,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;IAEzD,IAAI,CAAC;QACJ,MAAM,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QAC7D,IAAI,YAAY,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;YACzF,OAAO,CAAC,GAAG,GAAG,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QACtE,CAAC;IACF,CAAC;IAAC,MAAM,CAAC,CAAA,CAAC;IAEV,OAAO,aAAa,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;AACxE,CAAC"}
|
package/helpers/logging.d.ts
CHANGED
|
@@ -10,4 +10,5 @@ type ResolveOptions = {
|
|
|
10
10
|
export declare function resolveVerboseFlag(options?: ResolveOptions): boolean;
|
|
11
11
|
export declare function clearVerboseCache(): void;
|
|
12
12
|
export declare function createFilteredViteLogger(): Logger;
|
|
13
|
+
export declare function shouldSuppressViteWarning(msg: string): boolean;
|
|
13
14
|
export {};
|
package/helpers/logging.js
CHANGED
|
@@ -72,9 +72,19 @@ export function clearVerboseCache() {
|
|
|
72
72
|
// expected given NativeScript's virtual vendor bundling strategy.
|
|
73
73
|
// Currently filters:
|
|
74
74
|
// - Sourcemap missing source files (common in published packages)
|
|
75
|
+
// - Sourcemap source paths that walk outside the published package (the map
|
|
76
|
+
// was generated in a monorepo and still references workspace paths the
|
|
77
|
+
// consumer's node_modules doesn't have)
|
|
78
|
+
// - Sidecar `.js.map` files listed in a `//# sourceMappingURL=` comment that
|
|
79
|
+
// were not published alongside the `.js` file
|
|
75
80
|
// - Eval usage attributed to the virtual "@nativescript/vendor" module
|
|
76
81
|
// - License/annotation position warnings for the vendor bundle
|
|
82
|
+
// - Analog Angular optimizer/router plugins that never emit sourcemaps
|
|
77
83
|
// Extend this list cautiously; prefer documenting each suppression reason.
|
|
84
|
+
//
|
|
85
|
+
// All matching uses `.includes()` (never `.startsWith()`) because Vite wraps
|
|
86
|
+
// some warnings in picocolors ANSI escape sequences before handing them to
|
|
87
|
+
// the logger, which would defeat `startsWith`-style probes on TTY output.
|
|
78
88
|
export function createFilteredViteLogger() {
|
|
79
89
|
const baseLogger = createLogger(undefined, { allowClearScreen: true });
|
|
80
90
|
return {
|
|
@@ -93,9 +103,32 @@ export function createFilteredViteLogger() {
|
|
|
93
103
|
},
|
|
94
104
|
};
|
|
95
105
|
}
|
|
96
|
-
function
|
|
97
|
-
|
|
98
|
-
|
|
106
|
+
// Exported for unit tests. Keep this function pure so the test suite can
|
|
107
|
+
// exercise every suppression pattern without instantiating a real logger.
|
|
108
|
+
export function shouldSuppressViteWarning(msg) {
|
|
109
|
+
// Missing sourcemap original sources (kept as-is — published packages
|
|
110
|
+
// frequently drop a few `sources[n]` entries during transpile).
|
|
111
|
+
if (msg.includes('Sourcemap for ') && msg.includes('missing source files')) {
|
|
112
|
+
return true;
|
|
113
|
+
}
|
|
114
|
+
// Cross-package sourcemap path. Emitted for every `@nativescript/core`
|
|
115
|
+
// file at dev-server startup when the consumer has the published
|
|
116
|
+
// package installed: the shipped `.js.map` still references the
|
|
117
|
+
// original monorepo `packages/core/**` path, which does not exist in
|
|
118
|
+
// the consumer's node_modules. There is nothing we (or the app
|
|
119
|
+
// author) can do about this short of republishing core with relative
|
|
120
|
+
// sources — silently dropping it is correct.
|
|
121
|
+
if (msg.includes('Sourcemap for ') && msg.includes('points to a source file outside its package')) {
|
|
122
|
+
return true;
|
|
123
|
+
}
|
|
124
|
+
// Missing sidecar .js.map file. A couple of community packages
|
|
125
|
+
// (e.g. `@nativescript-community/observable`) ship the `.js` with a
|
|
126
|
+
// `//# sourceMappingURL=foo.js.map` footer but never include the
|
|
127
|
+
// actual map. Vite's sourcemap loader then retries the ENOENT on
|
|
128
|
+
// every request, flooding the terminal. We cannot resolve the
|
|
129
|
+
// missing file, so suppressing the warn-level diagnostic is the
|
|
130
|
+
// least invasive fix.
|
|
131
|
+
if (msg.includes('Failed to load source map for')) {
|
|
99
132
|
return true;
|
|
100
133
|
}
|
|
101
134
|
// Vendor eval usage (third-party libs aggregated); benign
|
|
@@ -110,6 +143,33 @@ function shouldSuppressViteWarning(msg) {
|
|
|
110
143
|
if (msg.includes('Sourcemap is likely to be incorrect') && (msg.includes('analogjs-router-optimization') || msg.includes('@analogjs/vite-plugin-angular-optimizer'))) {
|
|
111
144
|
return true;
|
|
112
145
|
}
|
|
146
|
+
// "contains Angular decorators but is not in the TypeScript program."
|
|
147
|
+
//
|
|
148
|
+
// Emitted by `@analogjs/vite-plugin-angular` for any `.ts` file that
|
|
149
|
+
// has an Angular decorator (`@Injectable`, `@Component`, etc.) but
|
|
150
|
+
// isn't reachable from Angular's tsconfig program — typically because
|
|
151
|
+
// the file is dynamically imported, lives outside `tsconfig.app.json`'s
|
|
152
|
+
// `include` glob, or is loaded via a non-Angular code path
|
|
153
|
+
// (e.g. `import('./service.ts')` inside a Vite-only utility).
|
|
154
|
+
//
|
|
155
|
+
// In practice these files compile fine via our `tsFallbackTransformPlugin`
|
|
156
|
+
// (which type-strips them through Vite's oxc transformer at request
|
|
157
|
+
// time, see `helpers/workers.ts`'s ANGULAR_DECORATOR_RE skip-guard for
|
|
158
|
+
// the matching policy). Decorator metadata isn't generated for them
|
|
159
|
+
// because they're not in the Angular program — but that's exactly the
|
|
160
|
+
// expected outcome for files that don't need DI or template binding.
|
|
161
|
+
//
|
|
162
|
+
// The warning appears once per offending file at every cold boot of
|
|
163
|
+
// the dev server (50+ lines for a real app), drowning out signal
|
|
164
|
+
// without ever pointing at an actionable problem. Suppressing it
|
|
165
|
+
// matches the working contract `tsFallbackTransformPlugin`
|
|
166
|
+
// established. If a user actually does intend a file to be in the
|
|
167
|
+
// Angular program, they'll notice via Angular's own runtime errors
|
|
168
|
+
// (missing providers, unresolved templates) — which we never
|
|
169
|
+
// suppress.
|
|
170
|
+
if (msg.includes('@analogjs/vite-plugin-angular') && msg.includes('contains Angular decorators but is not in the TypeScript program')) {
|
|
171
|
+
return true;
|
|
172
|
+
}
|
|
113
173
|
return false;
|
|
114
174
|
}
|
|
115
175
|
//# sourceMappingURL=logging.js.map
|
package/helpers/logging.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging.js","sourceRoot":"","sources":["../../../../packages/vite/helpers/logging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,MAAM,MAAM,CAAC;AAEjD,MAAM,mBAAmB,GAAG,oBAAoB,CAAC;AACjD,MAAM,gBAAgB,GAAG,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC;AAYpH,IAAI,aAAkC,CAAC;AAEvC,SAAS,aAAa,CAAC,KAAgB;IACtC,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,SAAS,CAAC;IAC5D,IAAI,OAAO,KAAK,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC7C,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,KAAK,CAAC,CAAC;IAClD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC/B,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QAC9C,IAAI,CAAC,UAAU;YAAE,OAAO,SAAS,CAAC;QAClC,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;YACnE,OAAO,IAAI,CAAC;QACb,CAAC;QACD,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE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AC1M,OAAO,IAAI,CAAC;IACb,CAAC;IACD,kGAAkG;IAClG,IAAI,GAAG,CAAC,QAAQ,CAAC,qCAAqC,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,8BAA8B,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,yCAAyC,CAAC,CAAC,EAAE,CAAC;QACtK,OAAO,IAAI,CAAC;IACb,CAAC;IACD,sEAAsE;IACtE,EAAE;IACF,qEAAqE;IACrE,mEAAmE;IACnE,sEAAsE;IACtE,wEAAwE;IACxE,2DAA2D;IAC3D,8DAA8D;IAC9D,EAAE;IACF,2EAA2E;IAC3E,oEAAoE;IACpE,uEAAuE;IACvE,oEAAoE;IACpE,sEAAsE;IACtE,qEAAqE;IACrE,EAAE;IACF,oEAAoE;IACpE,iEAAiE;IACjE,iEAAiE;IACjE,2DAA2D;IAC3D,kEAAkE;IAClE,mEAAmE;IACnE,6DAA6D;IAC7D,YAAY;IACZ,IAAI,GAAG,CAAC,QAAQ,CAAC,+BAA+B,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,kEAAkE,CAAC,EAAE,CAAC;QACvI,OAAO,IAAI,CAAC;IACb,CAAC;IACD,OAAO,KAAK,CAAC;AACd,CAAC"}
|
package/helpers/main-entry.d.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
+
import { type ResolvedConfig } from 'vite';
|
|
1
2
|
export declare function mainEntryPlugin(opts: {
|
|
2
3
|
platform: 'ios' | 'android' | 'visionos';
|
|
3
4
|
isDevMode: boolean;
|
|
4
5
|
verbose: boolean;
|
|
5
6
|
hmrActive: boolean;
|
|
7
|
+
useHttps: boolean;
|
|
6
8
|
}): {
|
|
7
9
|
name: string;
|
|
10
|
+
configResolved(config: ResolvedConfig): void;
|
|
8
11
|
resolveId(id: string): string;
|
|
9
|
-
load(id: string): {
|
|
12
|
+
load(id: string): Promise<{
|
|
10
13
|
code: string;
|
|
11
14
|
moduleType: string;
|
|
12
|
-
}
|
|
15
|
+
}>;
|
|
13
16
|
};
|