@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.
@@ -0,0 +1,2 @@
1
+ export { compileTailwind, compileTailwindConfig, isTailwindCandidate } from './compileTailwind';
2
+ export { disposeTailwindCompiler, incrementalTailwindBuild, warmTailwindCompiler } from './tailwindCompiler';
@@ -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>;
@@ -1,4 +1,5 @@
1
1
  export * from '../types';
2
+ export * from './build/index';
2
3
  export * from './constants';
3
4
  export * from './core';
4
5
  export * from './plugins/index';
@@ -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 existsSync3, readFileSync as readFileSync3, writeFileSync } from "fs";
1864
- import { dirname as dirname3, join as join4, resolve as resolve4 } from "path";
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 fromProject = resolve4(process.cwd(), "node_modules/@angular/core");
1901
- if (existsSync3(join4(fromProject, "package.json"))) {
1902
- return fromProject;
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=EC5E65786C95371464756E2164756E21
3705
+ //# debugId=773BD968527BC65A64756E2164756E21
3701
3706
  //# sourceMappingURL=index.js.map