@absolutejs/absolute 0.19.0-beta.769 → 0.19.0-beta.772
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/angular/index.js +102 -96
- package/dist/angular/index.js.map +6 -6
- package/dist/angular/server.js +84 -78
- package/dist/angular/server.js.map +6 -6
- package/dist/build.js +5364 -37973
- package/dist/build.js.map +14 -10
- package/dist/cli/index.js +118 -6
- package/dist/client/index.js +23 -18
- package/dist/client/index.js.map +5 -5
- package/dist/index.js +10582 -43181
- package/dist/index.js.map +17 -12
- package/dist/islands/index.js +42 -37
- package/dist/islands/index.js.map +5 -5
- package/dist/react/index.js +42 -37
- package/dist/react/index.js.map +5 -5
- package/dist/src/build/index.d.ts +2 -0
- package/dist/src/build/tailwindCompiler.d.ts +8 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/svelte/index.js +23 -18
- package/dist/svelte/index.js.map +5 -5
- package/dist/vue/index.js +42 -37
- package/dist/vue/index.js.map +5 -5
- package/package.json +1 -6
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StylePreprocessorConfig, TailwindConfig } from '../../types/build';
|
|
2
|
+
export declare const extractCandidates: (source: string) => Set<string>;
|
|
3
|
+
export declare const disposeTailwindCompiler: (cssPath?: string) => void;
|
|
4
|
+
export declare const incrementalTailwindBuild: (tailwind: TailwindConfig, buildPath: string, changedFiles: string[], styleTransformConfig?: StylePreprocessorConfig) => Promise<{
|
|
5
|
+
cssChanged: boolean;
|
|
6
|
+
durationMs: number;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const warmTailwindCompiler: (tailwind: TailwindConfig) => Promise<void>;
|
package/dist/src/index.d.ts
CHANGED
package/dist/svelte/index.js
CHANGED
|
@@ -1859,9 +1859,25 @@ var init_renderToReadableStream = __esm(() => {
|
|
|
1859
1859
|
init_escapeScriptContent();
|
|
1860
1860
|
});
|
|
1861
1861
|
|
|
1862
|
+
// src/angular/resolveAngularPackage.ts
|
|
1863
|
+
import { existsSync as existsSync3 } from "fs";
|
|
1864
|
+
import { resolve as resolve4 } from "path";
|
|
1865
|
+
var resolveAngularPackage = (specifier) => {
|
|
1866
|
+
const fromCompiledRuntime = process.env.ABSOLUTE_BUILD_DIR ? resolve4(process.env.ABSOLUTE_BUILD_DIR, "node_modules", specifier) : null;
|
|
1867
|
+
if (fromCompiledRuntime && existsSync3(fromCompiledRuntime)) {
|
|
1868
|
+
return fromCompiledRuntime;
|
|
1869
|
+
}
|
|
1870
|
+
const fromProject = resolve4(process.cwd(), "node_modules", specifier);
|
|
1871
|
+
if (existsSync3(fromProject)) {
|
|
1872
|
+
return fromProject;
|
|
1873
|
+
}
|
|
1874
|
+
return specifier;
|
|
1875
|
+
};
|
|
1876
|
+
var init_resolveAngularPackage = () => {};
|
|
1877
|
+
|
|
1862
1878
|
// src/angular/injectorPatch.ts
|
|
1863
|
-
import { existsSync as
|
|
1864
|
-
import { dirname as dirname3, join as join4
|
|
1879
|
+
import { existsSync as existsSync4, readFileSync as readFileSync3, writeFileSync } from "fs";
|
|
1880
|
+
import { dirname as dirname3, join as join4 } from "path";
|
|
1865
1881
|
var applyInjectorPatch = (chunkPath, content) => {
|
|
1866
1882
|
if (content.includes('Symbol.for("angular.currentInjector")')) {
|
|
1867
1883
|
return;
|
|
@@ -1897,9 +1913,9 @@ var applyInjectorPatch = (chunkPath, content) => {
|
|
|
1897
1913
|
}
|
|
1898
1914
|
writeFileSync(chunkPath, patched, "utf-8");
|
|
1899
1915
|
}, resolveAngularCoreDir = () => {
|
|
1900
|
-
const
|
|
1901
|
-
if (
|
|
1902
|
-
return
|
|
1916
|
+
const resolved = resolveAngularPackage("@angular/core");
|
|
1917
|
+
if (existsSync4(join4(resolved, "package.json"))) {
|
|
1918
|
+
return resolved;
|
|
1903
1919
|
}
|
|
1904
1920
|
return dirname3(__require.resolve("@angular/core/package.json"));
|
|
1905
1921
|
}, patchAngularInjectorSingleton = () => {
|
|
@@ -1911,21 +1927,10 @@ var applyInjectorPatch = (chunkPath, content) => {
|
|
|
1911
1927
|
} catch {}
|
|
1912
1928
|
};
|
|
1913
1929
|
var init_injectorPatch = __esm(() => {
|
|
1930
|
+
init_resolveAngularPackage();
|
|
1914
1931
|
patchAngularInjectorSingleton();
|
|
1915
1932
|
});
|
|
1916
1933
|
|
|
1917
|
-
// src/angular/resolveAngularPackage.ts
|
|
1918
|
-
import { existsSync as existsSync4 } from "fs";
|
|
1919
|
-
import { resolve as resolve5 } from "path";
|
|
1920
|
-
var resolveAngularPackage = (specifier) => {
|
|
1921
|
-
const fromProject = resolve5(process.cwd(), "node_modules", specifier);
|
|
1922
|
-
if (existsSync4(fromProject)) {
|
|
1923
|
-
return fromProject;
|
|
1924
|
-
}
|
|
1925
|
-
return specifier;
|
|
1926
|
-
};
|
|
1927
|
-
var init_resolveAngularPackage = () => {};
|
|
1928
|
-
|
|
1929
1934
|
// src/angular/angularPatch.ts
|
|
1930
1935
|
var exports_angularPatch = {};
|
|
1931
1936
|
__export(exports_angularPatch, {
|
|
@@ -3697,5 +3702,5 @@ export {
|
|
|
3697
3702
|
createTypedIsland
|
|
3698
3703
|
};
|
|
3699
3704
|
|
|
3700
|
-
//# debugId=
|
|
3705
|
+
//# debugId=773BD968527BC65A64756E2164756E21
|
|
3701
3706
|
//# sourceMappingURL=index.js.map
|