@absolutejs/absolute 0.19.0-beta.730 → 0.19.0-beta.732
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/dist/build.js +68 -61
- package/dist/build.js.map +6 -6
- package/dist/index.js +68 -61
- package/dist/index.js.map +6 -6
- package/dist/src/build/buildAngularVendor.d.ts +5 -0
- package/dist/src/build/rewriteImports.d.ts +9 -0
- package/package.json +1 -1
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
/** Build vendor bundles for every @angular/* package the project imports. */
|
|
2
2
|
export declare const buildAngularVendor: (buildDir: string, directories?: string[]) => Promise<string[]>;
|
|
3
3
|
export declare const computeAngularVendorPaths: (specifiers?: string[]) => Record<string, string>;
|
|
4
|
+
/** Async variant that scans source + transitive deps before producing the
|
|
5
|
+
* vendor path map. Use this when the page-bundle build needs the full set of
|
|
6
|
+
* angular specs in its rewrite map (otherwise transitively-discovered subpaths
|
|
7
|
+
* like `@angular/core/rxjs-interop` end up as bare specifiers in the output). */
|
|
8
|
+
export declare const computeAngularVendorPathsAsync: (directories?: string[]) => Promise<Record<string, string>>;
|
|
@@ -5,3 +5,12 @@
|
|
|
5
5
|
* Uses native Zig scanner (15x faster) when available, falls back
|
|
6
6
|
* to JS regex on Windows or when the native addon is missing. */
|
|
7
7
|
export declare const rewriteImports: (outputPaths: string[], vendorPaths: Record<string, string>) => Promise<void>;
|
|
8
|
+
/** Post-process every .js in one or more vendor directories using the
|
|
9
|
+
* combined cross-framework path map. Required because each vendor build
|
|
10
|
+
* externalizes packages owned by other vendor pipelines (e.g. a dep-vendor
|
|
11
|
+
* wrapper around `@sentry/angular` externalizes `@angular/core` so it isn't
|
|
12
|
+
* duplicated, leaving a bare `from "@angular/core"` in the output). Without
|
|
13
|
+
* this rewrite the browser fetches the vendor file at runtime and chokes
|
|
14
|
+
* on the bare specifier. Run AFTER all vendor builds complete so every
|
|
15
|
+
* framework's path map is included in `vendorPaths`. */
|
|
16
|
+
export declare const rewriteVendorDirectories: (vendorDirs: string[], vendorPaths: Record<string, string>) => Promise<void>;
|
package/package.json
CHANGED