@ttsc/unplugin 0.34.1 → 0.34.3
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 +1 -0
- package/lib/api.js +4 -0
- package/lib/api.js.map +1 -1
- package/lib/api.mjs +2 -0
- package/lib/api.mjs.map +1 -1
- package/lib/core/bridge/TtscProjectRecord.d.cts +4 -1
- package/lib/core/bridge/TtscProjectRecord.d.mts +4 -1
- package/lib/core/bridge/TtscProjectRecord.d.ts +4 -1
- package/lib/core/bridge/projectRecordArgumentsMatch.d.cts +18 -0
- package/lib/core/bridge/projectRecordArgumentsMatch.d.mts +18 -0
- package/lib/core/bridge/projectRecordArgumentsMatch.d.ts +18 -0
- package/lib/core/bridge/projectRecordArgumentsMatch.js +36 -0
- package/lib/core/bridge/projectRecordArgumentsMatch.js.map +1 -0
- package/lib/core/bridge/projectRecordArgumentsMatch.mjs +34 -0
- package/lib/core/bridge/projectRecordArgumentsMatch.mjs.map +1 -0
- package/lib/core/bridge/projectRecordMoved.d.cts +14 -12
- package/lib/core/bridge/projectRecordMoved.d.mts +14 -12
- package/lib/core/bridge/projectRecordMoved.d.ts +14 -12
- package/lib/core/bridge/projectRecordMoved.js +17 -12
- package/lib/core/bridge/projectRecordMoved.js.map +1 -1
- package/lib/core/bridge/projectRecordMoved.mjs +17 -12
- package/lib/core/bridge/projectRecordMoved.mjs.map +1 -1
- package/lib/core/bridge/readProjectRecordFile.d.cts +4 -3
- package/lib/core/bridge/readProjectRecordFile.d.mts +4 -3
- package/lib/core/bridge/readProjectRecordFile.d.ts +4 -3
- package/lib/core/bridge/readProjectRecordFile.js +26 -3
- package/lib/core/bridge/readProjectRecordFile.js.map +1 -1
- package/lib/core/bridge/readProjectRecordFile.mjs +26 -3
- package/lib/core/bridge/readProjectRecordFile.mjs.map +1 -1
- package/lib/core/bridge/refreshProjectRecordFile.d.cts +3 -2
- package/lib/core/bridge/refreshProjectRecordFile.d.mts +3 -2
- package/lib/core/bridge/refreshProjectRecordFile.d.ts +3 -2
- package/lib/core/bridge/refreshProjectRecordFile.js +9 -3
- package/lib/core/bridge/refreshProjectRecordFile.js.map +1 -1
- package/lib/core/bridge/refreshProjectRecordFile.mjs +9 -3
- package/lib/core/bridge/refreshProjectRecordFile.mjs.map +1 -1
- package/lib/core/bridge/refreshProjectRecordFiles.d.cts +1 -1
- package/lib/core/bridge/refreshProjectRecordFiles.d.mts +1 -1
- package/lib/core/bridge/refreshProjectRecordFiles.d.ts +1 -1
- package/lib/core/bridge/refreshProjectRecordFiles.js +2 -2
- package/lib/core/bridge/refreshProjectRecordFiles.js.map +1 -1
- package/lib/core/bridge/refreshProjectRecordFiles.mjs +2 -2
- package/lib/core/bridge/refreshProjectRecordFiles.mjs.map +1 -1
- package/lib/core/index.d.cts +2 -0
- package/lib/core/index.d.mts +2 -0
- package/lib/core/index.d.ts +2 -0
- package/lib/core/index.js +4 -0
- package/lib/core/index.js.map +1 -1
- package/lib/core/index.mjs +2 -0
- package/lib/core/index.mjs.map +1 -1
- package/lib/core/next/next.js +5 -2
- package/lib/core/next/next.js.map +1 -1
- package/lib/core/next/next.mjs +5 -2
- package/lib/core/next/next.mjs.map +1 -1
- package/lib/core/options/ResolvedTtscUnpluginOptions.d.cts +2 -0
- package/lib/core/options/ResolvedTtscUnpluginOptions.d.mts +2 -0
- package/lib/core/options/ResolvedTtscUnpluginOptions.d.ts +2 -0
- package/lib/core/options/TtscUnpluginOptions.d.cts +8 -0
- package/lib/core/options/TtscUnpluginOptions.d.mts +8 -0
- package/lib/core/options/TtscUnpluginOptions.d.ts +8 -0
- package/lib/core/options/resolveOptions.d.cts +4 -3
- package/lib/core/options/resolveOptions.d.mts +4 -3
- package/lib/core/options/resolveOptions.d.ts +4 -3
- package/lib/core/options/resolveOptions.js +5 -3
- package/lib/core/options/resolveOptions.js.map +1 -1
- package/lib/core/options/resolveOptions.mjs +5 -3
- package/lib/core/options/resolveOptions.mjs.map +1 -1
- package/lib/core/rollup/rollupDeliveryOptions.d.cts +6 -6
- package/lib/core/rollup/rollupDeliveryOptions.d.mts +6 -6
- package/lib/core/rollup/rollupDeliveryOptions.d.ts +6 -6
- package/lib/core/rollup/rollupDeliveryOptions.js +9 -6
- package/lib/core/rollup/rollupDeliveryOptions.js.map +1 -1
- package/lib/core/rollup/rollupDeliveryOptions.mjs +9 -6
- package/lib/core/rollup/rollupDeliveryOptions.mjs.map +1 -1
- package/lib/core/transform/cache/TRANSFORM_CACHE_MEMBERSHIP_POLICIES.d.cts +10 -0
- package/lib/core/transform/cache/TRANSFORM_CACHE_MEMBERSHIP_POLICIES.d.mts +10 -0
- package/lib/core/transform/cache/TRANSFORM_CACHE_MEMBERSHIP_POLICIES.d.ts +10 -0
- package/lib/core/transform/cache/TRANSFORM_CACHE_MEMBERSHIP_POLICIES.js +13 -0
- package/lib/core/transform/cache/TRANSFORM_CACHE_MEMBERSHIP_POLICIES.js.map +1 -0
- package/lib/core/transform/cache/TRANSFORM_CACHE_MEMBERSHIP_POLICIES.mjs +11 -0
- package/lib/core/transform/cache/TRANSFORM_CACHE_MEMBERSHIP_POLICIES.mjs.map +1 -0
- package/lib/core/transform/cache/TtscCachedProjectTransform.d.cts +6 -0
- package/lib/core/transform/cache/TtscCachedProjectTransform.d.mts +6 -0
- package/lib/core/transform/cache/TtscCachedProjectTransform.d.ts +6 -0
- package/lib/core/transform/cache/createTransformCacheKey.d.cts +11 -8
- package/lib/core/transform/cache/createTransformCacheKey.d.mts +11 -8
- package/lib/core/transform/cache/createTransformCacheKey.d.ts +11 -8
- package/lib/core/transform/cache/createTransformCacheKey.js +11 -8
- package/lib/core/transform/cache/createTransformCacheKey.js.map +1 -1
- package/lib/core/transform/cache/createTransformCacheKey.mjs +11 -8
- package/lib/core/transform/cache/createTransformCacheKey.mjs.map +1 -1
- package/lib/core/transform/generation/TtscCompilerMembershipHint.d.cts +20 -0
- package/lib/core/transform/generation/TtscCompilerMembershipHint.d.mts +20 -0
- package/lib/core/transform/generation/TtscCompilerMembershipHint.d.ts +20 -0
- package/lib/core/transform/generation/applyCompilerMembership.d.cts +15 -0
- package/lib/core/transform/generation/applyCompilerMembership.d.mts +15 -0
- package/lib/core/transform/generation/applyCompilerMembership.d.ts +15 -0
- package/lib/core/transform/generation/applyCompilerMembership.js +41 -0
- package/lib/core/transform/generation/applyCompilerMembership.js.map +1 -0
- package/lib/core/transform/generation/applyCompilerMembership.mjs +39 -0
- package/lib/core/transform/generation/applyCompilerMembership.mjs.map +1 -0
- package/lib/core/transform/generation/captureTransformGeneration.d.cts +7 -0
- package/lib/core/transform/generation/captureTransformGeneration.d.mts +7 -0
- package/lib/core/transform/generation/captureTransformGeneration.d.ts +7 -0
- package/lib/core/transform/generation/captureTransformGeneration.js +20 -7
- package/lib/core/transform/generation/captureTransformGeneration.js.map +1 -1
- package/lib/core/transform/generation/captureTransformGeneration.mjs +20 -7
- package/lib/core/transform/generation/captureTransformGeneration.mjs.map +1 -1
- package/lib/core/transform/generation/onlyLearnedCompileFacts.d.cts +5 -5
- package/lib/core/transform/generation/onlyLearnedCompileFacts.d.mts +5 -5
- package/lib/core/transform/generation/onlyLearnedCompileFacts.d.ts +5 -5
- package/lib/core/transform/generation/onlyLearnedCompileFacts.js +7 -5
- package/lib/core/transform/generation/onlyLearnedCompileFacts.js.map +1 -1
- package/lib/core/transform/generation/onlyLearnedCompileFacts.mjs +7 -5
- package/lib/core/transform/generation/onlyLearnedCompileFacts.mjs.map +1 -1
- package/lib/core/transform/generation/primeCompilerMembership.d.cts +22 -0
- package/lib/core/transform/generation/primeCompilerMembership.d.mts +22 -0
- package/lib/core/transform/generation/primeCompilerMembership.d.ts +22 -0
- package/lib/core/transform/generation/primeCompilerMembership.js +32 -0
- package/lib/core/transform/generation/primeCompilerMembership.js.map +1 -0
- package/lib/core/transform/generation/primeCompilerMembership.mjs +30 -0
- package/lib/core/transform/generation/primeCompilerMembership.mjs.map +1 -0
- package/lib/core/transform/generation/selectReportedMembershipPolicy.d.cts +7 -7
- package/lib/core/transform/generation/selectReportedMembershipPolicy.d.mts +7 -7
- package/lib/core/transform/generation/selectReportedMembershipPolicy.d.ts +7 -7
- package/lib/core/transform/generation/selectReportedMembershipPolicy.js +43 -9
- package/lib/core/transform/generation/selectReportedMembershipPolicy.js.map +1 -1
- package/lib/core/transform/generation/selectReportedMembershipPolicy.mjs +43 -9
- package/lib/core/transform/generation/selectReportedMembershipPolicy.mjs.map +1 -1
- package/lib/core/transform/generation/transformProject.d.cts +7 -0
- package/lib/core/transform/generation/transformProject.d.mts +7 -0
- package/lib/core/transform/generation/transformProject.d.ts +7 -0
- package/lib/core/transform/generation/transformProject.js +3 -0
- package/lib/core/transform/generation/transformProject.js.map +1 -1
- package/lib/core/transform/generation/transformProject.mjs +3 -0
- package/lib/core/transform/generation/transformProject.mjs.map +1 -1
- package/lib/core/transform/project/isPossibleProgramFileName.d.cts +13 -11
- package/lib/core/transform/project/isPossibleProgramFileName.d.mts +13 -11
- package/lib/core/transform/project/isPossibleProgramFileName.d.ts +13 -11
- package/lib/core/transform/project/isPossibleProgramFileName.js +21 -13
- package/lib/core/transform/project/isPossibleProgramFileName.js.map +1 -1
- package/lib/core/transform/project/isPossibleProgramFileName.mjs +21 -13
- package/lib/core/transform/project/isPossibleProgramFileName.mjs.map +1 -1
- package/lib/core/transform/session/sharedCompileIdentity.d.cts +8 -5
- package/lib/core/transform/session/sharedCompileIdentity.d.mts +8 -5
- package/lib/core/transform/session/sharedCompileIdentity.d.ts +8 -5
- package/lib/core/transform/session/sharedCompileIdentity.js +8 -5
- package/lib/core/transform/session/sharedCompileIdentity.js.map +1 -1
- package/lib/core/transform/session/sharedCompileIdentity.mjs +8 -5
- package/lib/core/transform/session/sharedCompileIdentity.mjs.map +1 -1
- package/lib/core/transform/transformTtsc.js +18 -0
- package/lib/core/transform/transformTtsc.js.map +1 -1
- package/lib/core/transform/transformTtsc.mjs +18 -0
- package/lib/core/transform/transformTtsc.mjs.map +1 -1
- package/lib/core/transform/tsconfig/TtscCompilerArgumentsWitness.d.cts +19 -0
- package/lib/core/transform/tsconfig/TtscCompilerArgumentsWitness.d.mts +19 -0
- package/lib/core/transform/tsconfig/TtscCompilerArgumentsWitness.d.ts +19 -0
- package/lib/core/transform/tsconfig/captureCompilerArguments.d.cts +14 -0
- package/lib/core/transform/tsconfig/captureCompilerArguments.d.mts +14 -0
- package/lib/core/transform/tsconfig/captureCompilerArguments.d.ts +14 -0
- package/lib/core/transform/tsconfig/captureCompilerArguments.js +26 -0
- package/lib/core/transform/tsconfig/captureCompilerArguments.js.map +1 -0
- package/lib/core/transform/tsconfig/captureCompilerArguments.mjs +24 -0
- package/lib/core/transform/tsconfig/captureCompilerArguments.mjs.map +1 -0
- package/lib/core/transform/tsconfig/compilerEnvironmentIdentity.d.cts +13 -0
- package/lib/core/transform/tsconfig/compilerEnvironmentIdentity.d.mts +13 -0
- package/lib/core/transform/tsconfig/compilerEnvironmentIdentity.d.ts +13 -0
- package/lib/core/transform/tsconfig/compilerEnvironmentIdentity.js +23 -0
- package/lib/core/transform/tsconfig/compilerEnvironmentIdentity.js.map +1 -0
- package/lib/core/transform/tsconfig/compilerEnvironmentIdentity.mjs +21 -0
- package/lib/core/transform/tsconfig/compilerEnvironmentIdentity.mjs.map +1 -0
- package/lib/core/transform/tsconfig/resolveCompilerEnvironment.d.cts +17 -0
- package/lib/core/transform/tsconfig/resolveCompilerEnvironment.d.mts +17 -0
- package/lib/core/transform/tsconfig/resolveCompilerEnvironment.d.ts +17 -0
- package/lib/core/transform/tsconfig/resolveCompilerEnvironment.js +57 -0
- package/lib/core/transform/tsconfig/resolveCompilerEnvironment.js.map +1 -0
- package/lib/core/transform/tsconfig/resolveCompilerEnvironment.mjs +55 -0
- package/lib/core/transform/tsconfig/resolveCompilerEnvironment.mjs.map +1 -0
- package/lib/core/transform/tsconfig/transformScratchEnvironment.d.cts +6 -6
- package/lib/core/transform/tsconfig/transformScratchEnvironment.d.mts +6 -6
- package/lib/core/transform/tsconfig/transformScratchEnvironment.d.ts +6 -6
- package/lib/core/transform/tsconfig/transformScratchEnvironment.js +7 -7
- package/lib/core/transform/tsconfig/transformScratchEnvironment.js.map +1 -1
- package/lib/core/transform/tsconfig/transformScratchEnvironment.mjs +7 -7
- package/lib/core/transform/tsconfig/transformScratchEnvironment.mjs.map +1 -1
- package/lib/core/transform/watch/notifyProjectRecord.js +3 -0
- package/lib/core/transform/watch/notifyProjectRecord.js.map +1 -1
- package/lib/core/transform/watch/notifyProjectRecord.mjs +3 -0
- package/lib/core/transform/watch/notifyProjectRecord.mjs.map +1 -1
- package/lib/core/tsconfig/ITtscProjectMembershipPolicy.d.cts +14 -1
- package/lib/core/tsconfig/ITtscProjectMembershipPolicy.d.mts +14 -1
- package/lib/core/tsconfig/ITtscProjectMembershipPolicy.d.ts +14 -1
- package/lib/core/tsconfig/mergeMembershipPolicyOverlay.d.cts +4 -3
- package/lib/core/tsconfig/mergeMembershipPolicyOverlay.d.mts +4 -3
- package/lib/core/tsconfig/mergeMembershipPolicyOverlay.d.ts +4 -3
- package/lib/core/tsconfig/mergeMembershipPolicyOverlay.js +36 -6
- package/lib/core/tsconfig/mergeMembershipPolicyOverlay.js.map +1 -1
- package/lib/core/tsconfig/mergeMembershipPolicyOverlay.mjs +36 -6
- package/lib/core/tsconfig/mergeMembershipPolicyOverlay.mjs.map +1 -1
- package/lib/core/tsconfig/readProjectMembershipPolicy.d.cts +3 -2
- package/lib/core/tsconfig/readProjectMembershipPolicy.d.mts +3 -2
- package/lib/core/tsconfig/readProjectMembershipPolicy.d.ts +3 -2
- package/lib/core/tsconfig/readProjectMembershipPolicy.js +49 -15
- package/lib/core/tsconfig/readProjectMembershipPolicy.js.map +1 -1
- package/lib/core/tsconfig/readProjectMembershipPolicy.mjs +49 -15
- package/lib/core/tsconfig/readProjectMembershipPolicy.mjs.map +1 -1
- package/lib/core/tsconfig/resolveMembershipInputExtensions.d.cts +16 -0
- package/lib/core/tsconfig/resolveMembershipInputExtensions.d.mts +16 -0
- package/lib/core/tsconfig/resolveMembershipInputExtensions.d.ts +16 -0
- package/lib/core/tsconfig/resolveMembershipInputExtensions.js +45 -0
- package/lib/core/tsconfig/resolveMembershipInputExtensions.js.map +1 -0
- package/lib/core/tsconfig/resolveMembershipInputExtensions.mjs +43 -0
- package/lib/core/tsconfig/resolveMembershipInputExtensions.mjs.map +1 -0
- package/lib/core/turbopack/turbopack.d.cts +2 -2
- package/lib/core/turbopack/turbopack.d.mts +2 -2
- package/lib/core/turbopack/turbopack.d.ts +2 -2
- package/lib/core/turbopack/turbopack.js +15 -7
- package/lib/core/turbopack/turbopack.js.map +1 -1
- package/lib/core/turbopack/turbopack.mjs +15 -7
- package/lib/core/turbopack/turbopack.mjs.map +1 -1
- package/lib/core/unplugin.js +21 -8
- package/lib/core/unplugin.js.map +1 -1
- package/lib/core/unplugin.mjs +21 -8
- package/lib/core/unplugin.mjs.map +1 -1
- package/package.json +3 -3
- package/src/core/bridge/TtscProjectRecord.ts +4 -1
- package/src/core/bridge/projectRecordArgumentsMatch.ts +37 -0
- package/src/core/bridge/projectRecordMoved.ts +17 -11
- package/src/core/bridge/readProjectRecordFile.ts +39 -3
- package/src/core/bridge/refreshProjectRecordFile.ts +9 -2
- package/src/core/bridge/refreshProjectRecordFiles.ts +7 -1
- package/src/core/index.ts +2 -0
- package/src/core/next/next.ts +18 -2
- package/src/core/options/ResolvedTtscUnpluginOptions.ts +3 -0
- package/src/core/options/TtscUnpluginOptions.ts +9 -0
- package/src/core/options/resolveOptions.ts +5 -3
- package/src/core/rollup/rollupDeliveryOptions.ts +9 -5
- package/src/core/transform/cache/TRANSFORM_CACHE_MEMBERSHIP_POLICIES.ts +14 -0
- package/src/core/transform/cache/TtscCachedProjectTransform.ts +7 -0
- package/src/core/transform/cache/createTransformCacheKey.ts +13 -8
- package/src/core/transform/generation/TtscCompilerMembershipHint.ts +24 -0
- package/src/core/transform/generation/applyCompilerMembership.ts +44 -0
- package/src/core/transform/generation/captureTransformGeneration.ts +43 -10
- package/src/core/transform/generation/onlyLearnedCompileFacts.ts +7 -5
- package/src/core/transform/generation/primeCompilerMembership.ts +39 -0
- package/src/core/transform/generation/selectReportedMembershipPolicy.ts +59 -13
- package/src/core/transform/generation/transformProject.ts +12 -0
- package/src/core/transform/project/isPossibleProgramFileName.ts +28 -15
- package/src/core/transform/session/sharedCompileIdentity.ts +10 -5
- package/src/core/transform/transformTtsc.ts +21 -0
- package/src/core/transform/tsconfig/TtscCompilerArgumentsWitness.ts +19 -0
- package/src/core/transform/tsconfig/captureCompilerArguments.ts +25 -0
- package/src/core/transform/tsconfig/compilerEnvironmentIdentity.ts +20 -0
- package/src/core/transform/tsconfig/resolveCompilerEnvironment.ts +61 -0
- package/src/core/transform/tsconfig/transformScratchEnvironment.ts +7 -6
- package/src/core/transform/watch/notifyProjectRecord.ts +3 -0
- package/src/core/tsconfig/ITtscProjectMembershipPolicy.ts +15 -1
- package/src/core/tsconfig/mergeMembershipPolicyOverlay.ts +31 -6
- package/src/core/tsconfig/readProjectMembershipPolicy.ts +61 -17
- package/src/core/tsconfig/resolveMembershipInputExtensions.ts +45 -0
- package/src/core/turbopack/turbopack.ts +27 -7
- package/src/core/unplugin.ts +34 -9
|
@@ -5,11 +5,12 @@ import type { ResolvedTtscUnpluginOptions } from "../../options/ResolvedTtscUnpl
|
|
|
5
5
|
*
|
|
6
6
|
* The ordered JSON tuple groups sharing candidates by spelled config and source
|
|
7
7
|
* root, serialized compiler-option/alias/plugin payloads, reported versions and
|
|
8
|
-
* binary platform
|
|
9
|
-
*
|
|
10
|
-
* dimensions. This is a truncated
|
|
11
|
-
*
|
|
12
|
-
*
|
|
8
|
+
* binary platform and effective compiler argument transport. Supported option
|
|
9
|
+
* values must preserve their meaning through JSON; omitted or unsupported
|
|
10
|
+
* JavaScript values are not independent key dimensions. This is a truncated
|
|
11
|
+
* digest, not a complete filesystem or output equivalence proof. Claim
|
|
12
|
+
* publication and adoption separately establish the recorded input/stability
|
|
13
|
+
* premises for a reused compile.
|
|
13
14
|
*
|
|
14
15
|
* A compile is kept beyond the process that published it, so a dev server
|
|
15
16
|
* started again adopts what the last one compiled (samchon/ttsc#1483). The
|
|
@@ -36,6 +37,8 @@ import type { ResolvedTtscUnpluginOptions } from "../../options/ResolvedTtscUnpl
|
|
|
36
37
|
export declare function sharedCompileIdentity(props: {
|
|
37
38
|
aliasPaths: Record<string, string[]>;
|
|
38
39
|
compilerOptions: Record<string, unknown>;
|
|
40
|
+
/** Effective compiler arguments and their original working directory. */
|
|
41
|
+
compilerEnvironment?: NodeJS.ProcessEnv;
|
|
39
42
|
plugins?: ResolvedTtscUnpluginOptions["plugins"];
|
|
40
43
|
projectRoot: string;
|
|
41
44
|
tsconfig: string;
|
|
@@ -5,11 +5,12 @@ import type { ResolvedTtscUnpluginOptions } from "../../options/ResolvedTtscUnpl
|
|
|
5
5
|
*
|
|
6
6
|
* The ordered JSON tuple groups sharing candidates by spelled config and source
|
|
7
7
|
* root, serialized compiler-option/alias/plugin payloads, reported versions and
|
|
8
|
-
* binary platform
|
|
9
|
-
*
|
|
10
|
-
* dimensions. This is a truncated
|
|
11
|
-
*
|
|
12
|
-
*
|
|
8
|
+
* binary platform and effective compiler argument transport. Supported option
|
|
9
|
+
* values must preserve their meaning through JSON; omitted or unsupported
|
|
10
|
+
* JavaScript values are not independent key dimensions. This is a truncated
|
|
11
|
+
* digest, not a complete filesystem or output equivalence proof. Claim
|
|
12
|
+
* publication and adoption separately establish the recorded input/stability
|
|
13
|
+
* premises for a reused compile.
|
|
13
14
|
*
|
|
14
15
|
* A compile is kept beyond the process that published it, so a dev server
|
|
15
16
|
* started again adopts what the last one compiled (samchon/ttsc#1483). The
|
|
@@ -36,6 +37,8 @@ import type { ResolvedTtscUnpluginOptions } from "../../options/ResolvedTtscUnpl
|
|
|
36
37
|
export declare function sharedCompileIdentity(props: {
|
|
37
38
|
aliasPaths: Record<string, string[]>;
|
|
38
39
|
compilerOptions: Record<string, unknown>;
|
|
40
|
+
/** Effective compiler arguments and their original working directory. */
|
|
41
|
+
compilerEnvironment?: NodeJS.ProcessEnv;
|
|
39
42
|
plugins?: ResolvedTtscUnpluginOptions["plugins"];
|
|
40
43
|
projectRoot: string;
|
|
41
44
|
tsconfig: string;
|
|
@@ -5,11 +5,12 @@ import type { ResolvedTtscUnpluginOptions } from "../../options/ResolvedTtscUnpl
|
|
|
5
5
|
*
|
|
6
6
|
* The ordered JSON tuple groups sharing candidates by spelled config and source
|
|
7
7
|
* root, serialized compiler-option/alias/plugin payloads, reported versions and
|
|
8
|
-
* binary platform
|
|
9
|
-
*
|
|
10
|
-
* dimensions. This is a truncated
|
|
11
|
-
*
|
|
12
|
-
*
|
|
8
|
+
* binary platform and effective compiler argument transport. Supported option
|
|
9
|
+
* values must preserve their meaning through JSON; omitted or unsupported
|
|
10
|
+
* JavaScript values are not independent key dimensions. This is a truncated
|
|
11
|
+
* digest, not a complete filesystem or output equivalence proof. Claim
|
|
12
|
+
* publication and adoption separately establish the recorded input/stability
|
|
13
|
+
* premises for a reused compile.
|
|
13
14
|
*
|
|
14
15
|
* A compile is kept beyond the process that published it, so a dev server
|
|
15
16
|
* started again adopts what the last one compiled (samchon/ttsc#1483). The
|
|
@@ -36,6 +37,8 @@ import type { ResolvedTtscUnpluginOptions } from "../../options/ResolvedTtscUnpl
|
|
|
36
37
|
export declare function sharedCompileIdentity(props: {
|
|
37
38
|
aliasPaths: Record<string, string[]>;
|
|
38
39
|
compilerOptions: Record<string, unknown>;
|
|
40
|
+
/** Effective compiler arguments and their original working directory. */
|
|
41
|
+
compilerEnvironment?: NodeJS.ProcessEnv;
|
|
39
42
|
plugins?: ResolvedTtscUnpluginOptions["plugins"];
|
|
40
43
|
projectRoot: string;
|
|
41
44
|
tsconfig: string;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var crypto = require('node:crypto');
|
|
4
4
|
var pluginSource = require('ttsc/plugin-source');
|
|
5
|
+
var compilerEnvironmentIdentity = require('../tsconfig/compilerEnvironmentIdentity.js');
|
|
5
6
|
var unpluginVersion = require('./unpluginVersion.js');
|
|
6
7
|
|
|
7
8
|
/**
|
|
@@ -10,11 +11,12 @@ var unpluginVersion = require('./unpluginVersion.js');
|
|
|
10
11
|
*
|
|
11
12
|
* The ordered JSON tuple groups sharing candidates by spelled config and source
|
|
12
13
|
* root, serialized compiler-option/alias/plugin payloads, reported versions and
|
|
13
|
-
* binary platform
|
|
14
|
-
*
|
|
15
|
-
* dimensions. This is a truncated
|
|
16
|
-
*
|
|
17
|
-
*
|
|
14
|
+
* binary platform and effective compiler argument transport. Supported option
|
|
15
|
+
* values must preserve their meaning through JSON; omitted or unsupported
|
|
16
|
+
* JavaScript values are not independent key dimensions. This is a truncated
|
|
17
|
+
* digest, not a complete filesystem or output equivalence proof. Claim
|
|
18
|
+
* publication and adoption separately establish the recorded input/stability
|
|
19
|
+
* premises for a reused compile.
|
|
18
20
|
*
|
|
19
21
|
* A compile is kept beyond the process that published it, so a dev server
|
|
20
22
|
* started again adopts what the last one compiled (samchon/ttsc#1483). The
|
|
@@ -45,6 +47,7 @@ function sharedCompileIdentity(props) {
|
|
|
45
47
|
props.tsconfig,
|
|
46
48
|
props.projectRoot,
|
|
47
49
|
props.compilerOptions,
|
|
50
|
+
compilerEnvironmentIdentity.compilerEnvironmentIdentity(props.compilerEnvironment),
|
|
48
51
|
props.aliasPaths,
|
|
49
52
|
props.plugins ?? null,
|
|
50
53
|
pluginSource.pluginBuildVersions(props.projectRoot),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharedCompileIdentity.js","sources":["../../../../src/core/transform/session/sharedCompileIdentity.ts"],"sourcesContent":[null],"names":["pluginBuildVersions","unpluginVersion"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sharedCompileIdentity.js","sources":["../../../../src/core/transform/session/sharedCompileIdentity.ts"],"sourcesContent":[null],"names":["compilerEnvironmentIdentity","pluginBuildVersions","unpluginVersion"],"mappings":";;;;;;;AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCG;AACG,SAAU,qBAAqB,CAAC,KAQrC,EAAA;AACC,IAAA,OAAO;SACJ,UAAU,CAAC,QAAQ;AACnB,SAAA,MAAM,CACL,IAAI,CAAC,SAAS,CAAC;AACb,QAAA,KAAK,CAAC,QAAQ;AACd,QAAA,KAAK,CAAC,WAAW;AACjB,QAAA,KAAK,CAAC,eAAe;AACrB,QAAAA,uDAA2B,CAAC,KAAK,CAAC,mBAAmB,CAAC;AACtD,QAAA,KAAK,CAAC,UAAU;QAChB,KAAK,CAAC,OAAO,IAAI,IAAI;AACrB,QAAAC,gCAAmB,CAAC,KAAK,CAAC,WAAW,CAAC;AACtC,QAAAC,+BAAe,EAAE;AACjB,QAAA,CAAA,EAAG,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAA,CAAE;AACtC,KAAA,CAAC;SAEH,MAAM,CAAC,KAAK;AACZ,SAAA,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC;AACjB;;;;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import crypto from 'node:crypto';
|
|
2
2
|
import { pluginBuildVersions } from 'ttsc/plugin-source';
|
|
3
|
+
import { compilerEnvironmentIdentity } from '../tsconfig/compilerEnvironmentIdentity.mjs';
|
|
3
4
|
import { unpluginVersion } from './unpluginVersion.mjs';
|
|
4
5
|
|
|
5
6
|
/**
|
|
@@ -8,11 +9,12 @@ import { unpluginVersion } from './unpluginVersion.mjs';
|
|
|
8
9
|
*
|
|
9
10
|
* The ordered JSON tuple groups sharing candidates by spelled config and source
|
|
10
11
|
* root, serialized compiler-option/alias/plugin payloads, reported versions and
|
|
11
|
-
* binary platform
|
|
12
|
-
*
|
|
13
|
-
* dimensions. This is a truncated
|
|
14
|
-
*
|
|
15
|
-
*
|
|
12
|
+
* binary platform and effective compiler argument transport. Supported option
|
|
13
|
+
* values must preserve their meaning through JSON; omitted or unsupported
|
|
14
|
+
* JavaScript values are not independent key dimensions. This is a truncated
|
|
15
|
+
* digest, not a complete filesystem or output equivalence proof. Claim
|
|
16
|
+
* publication and adoption separately establish the recorded input/stability
|
|
17
|
+
* premises for a reused compile.
|
|
16
18
|
*
|
|
17
19
|
* A compile is kept beyond the process that published it, so a dev server
|
|
18
20
|
* started again adopts what the last one compiled (samchon/ttsc#1483). The
|
|
@@ -43,6 +45,7 @@ function sharedCompileIdentity(props) {
|
|
|
43
45
|
props.tsconfig,
|
|
44
46
|
props.projectRoot,
|
|
45
47
|
props.compilerOptions,
|
|
48
|
+
compilerEnvironmentIdentity(props.compilerEnvironment),
|
|
46
49
|
props.aliasPaths,
|
|
47
50
|
props.plugins ?? null,
|
|
48
51
|
pluginBuildVersions(props.projectRoot),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharedCompileIdentity.mjs","sources":["../../../../src/core/transform/session/sharedCompileIdentity.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sharedCompileIdentity.mjs","sources":["../../../../src/core/transform/session/sharedCompileIdentity.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCG;AACG,SAAU,qBAAqB,CAAC,KAQrC,EAAA;AACC,IAAA,OAAO;SACJ,UAAU,CAAC,QAAQ;AACnB,SAAA,MAAM,CACL,IAAI,CAAC,SAAS,CAAC;AACb,QAAA,KAAK,CAAC,QAAQ;AACd,QAAA,KAAK,CAAC,WAAW;AACjB,QAAA,KAAK,CAAC,eAAe;AACrB,QAAA,2BAA2B,CAAC,KAAK,CAAC,mBAAmB,CAAC;AACtD,QAAA,KAAK,CAAC,UAAU;QAChB,KAAK,CAAC,OAAO,IAAI,IAAI;AACrB,QAAA,mBAAmB,CAAC,KAAK,CAAC,WAAW,CAAC;AACtC,QAAA,eAAe,EAAE;AACjB,QAAA,CAAA,EAAG,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAA,CAAE;AACtC,KAAA,CAAC;SAEH,MAAM,CAAC,KAAK;AACZ,SAAA,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC;AACjB;;;;"}
|
|
@@ -6,6 +6,7 @@ var createAliasPaths = require('./alias/createAliasPaths.js');
|
|
|
6
6
|
var TERMINAL_TRANSFORM_GENERATIONS = require('./cache/TERMINAL_TRANSFORM_GENERATIONS.js');
|
|
7
7
|
var TRANSFORM_CACHE_CASE_POLICIES = require('./cache/TRANSFORM_CACHE_CASE_POLICIES.js');
|
|
8
8
|
var TRANSFORM_CACHE_DEPENDENCY_WITNESSES = require('./cache/TRANSFORM_CACHE_DEPENDENCY_WITNESSES.js');
|
|
9
|
+
var TRANSFORM_CACHE_MEMBERSHIP_POLICIES = require('./cache/TRANSFORM_CACHE_MEMBERSHIP_POLICIES.js');
|
|
9
10
|
var TRANSFORM_RESULT_FILESYSTEM = require('./cache/TRANSFORM_RESULT_FILESYSTEM.js');
|
|
10
11
|
var awaitOrEvict = require('./cache/awaitOrEvict.js');
|
|
11
12
|
var createTransformCacheKey = require('./cache/createTransformCacheKey.js');
|
|
@@ -22,6 +23,7 @@ var transformProject = require('./generation/transformProject.js');
|
|
|
22
23
|
var preparePluginBuildEnvironments = require('./inputs/preparePluginBuildEnvironments.js');
|
|
23
24
|
var TRANSFORM_CACHE_SESSIONS = require('./session/TRANSFORM_CACHE_SESSIONS.js');
|
|
24
25
|
var settleProjectMutationEvents = require('./tracker/settleProjectMutationEvents.js');
|
|
26
|
+
var resolveCompilerEnvironment = require('./tsconfig/resolveCompilerEnvironment.js');
|
|
25
27
|
var resolveProjectSelection = require('./tsconfig/resolveProjectSelection.js');
|
|
26
28
|
var isDeclarationFile = require('./utils/isDeclarationFile.js');
|
|
27
29
|
var isHostWrapperQuery = require('./utils/isHostWrapperQuery.js');
|
|
@@ -127,8 +129,10 @@ async function runTransformTtsc(id, source, options, aliases, cache, hooks, prep
|
|
|
127
129
|
if (!preparing && cache !== undefined) {
|
|
128
130
|
TtscPrecompilation.TtscPrecompilation.start(cache, options, aliasPaths, (entry, text) => runTransformTtsc(entry, text, options, aliases, cache, { ...hooks, exactPath: true, projectSelection: undefined }, true));
|
|
129
131
|
}
|
|
132
|
+
const compilerEnvironment = resolveCompilerEnvironment.resolveCompilerEnvironment(options.runExternalCode);
|
|
130
133
|
const key = createTransformCacheKey.createTransformCacheKey({
|
|
131
134
|
aliasPaths,
|
|
135
|
+
compilerEnvironment,
|
|
132
136
|
compilerOptions: options.compilerOptions,
|
|
133
137
|
plugins: options.plugins,
|
|
134
138
|
projectRoot: selectedProjectRoot,
|
|
@@ -243,6 +247,11 @@ async function runTransformTtsc(id, source, options, aliases, cache, hooks, prep
|
|
|
243
247
|
transformed = transformProject.transformProject({
|
|
244
248
|
aliasPaths,
|
|
245
249
|
compilerOptions: options.compilerOptions,
|
|
250
|
+
compilerEnvironment,
|
|
251
|
+
runExternalCode: options.runExternalCode,
|
|
252
|
+
compilerMembership: cache === undefined
|
|
253
|
+
? undefined
|
|
254
|
+
: TRANSFORM_CACHE_MEMBERSHIP_POLICIES.TRANSFORM_CACHE_MEMBERSHIP_POLICIES.get(cache)?.get(key),
|
|
246
255
|
projectRoot: selectedProjectRoot,
|
|
247
256
|
currentFile: file,
|
|
248
257
|
currentSource: source,
|
|
@@ -294,6 +303,15 @@ async function runTransformTtsc(id, source, options, aliases, cache, hooks, prep
|
|
|
294
303
|
TRANSFORM_CACHE_DEPENDENCY_WITNESSES.TRANSFORM_CACHE_DEPENDENCY_WITNESSES.set(cache, witnesses);
|
|
295
304
|
}
|
|
296
305
|
witnesses.set(key, cached.externalDependencyInputs ?? []);
|
|
306
|
+
const membership = cached.compilerMembership;
|
|
307
|
+
if (membership !== undefined) {
|
|
308
|
+
let policies = TRANSFORM_CACHE_MEMBERSHIP_POLICIES.TRANSFORM_CACHE_MEMBERSHIP_POLICIES.get(cache);
|
|
309
|
+
if (policies === undefined) {
|
|
310
|
+
policies = new Map();
|
|
311
|
+
TRANSFORM_CACHE_MEMBERSHIP_POLICIES.TRANSFORM_CACHE_MEMBERSHIP_POLICIES.set(cache, policies);
|
|
312
|
+
}
|
|
313
|
+
policies.set(key, membership);
|
|
314
|
+
}
|
|
297
315
|
const reported = cached.membershipPolicy.useCaseSensitiveFileNames;
|
|
298
316
|
if (reported !== undefined) {
|
|
299
317
|
let policies = TRANSFORM_CACHE_CASE_POLICIES.TRANSFORM_CACHE_CASE_POLICIES.get(cache);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformTtsc.js","sources":["../../../src/core/transform/transformTtsc.ts"],"sourcesContent":[null],"names":["transformFilesystem","stripQuery","isHostWrapperQuery","isDeclarationFile","pluginsAreDisabled","prepareProjectRecordDirectories","resolveProjectSelection","createAliasPaths","TtscPrecompilation","createTransformCacheKey","transformCacheEpoch","TERMINAL_TRANSFORM_GENERATIONS","TtscUnstableGenerationError","preparePluginBuildEnvironments","replaysTerminalGeneration","notifyRejectedGenerationInputs","evictGeneration","awaitOrEvict","TRANSFORM_RESULT_FILESYSTEM","transformCacheTrustsNotifications","withdrawGenerationNotifications","settleProjectMutationEvents","TtscGenerationProof","selectCachedGenerationAction","deliverCachedTransform","transformProject","TRANSFORM_CACHE_SESSIONS","TRANSFORM_CACHE_CASE_POLICIES","TRANSFORM_CACHE_DEPENDENCY_WITNESSES","recordedDependencyWitnesses"],"mappings":"
|
|
1
|
+
{"version":3,"file":"transformTtsc.js","sources":["../../../src/core/transform/transformTtsc.ts"],"sourcesContent":[null],"names":["transformFilesystem","stripQuery","isHostWrapperQuery","isDeclarationFile","pluginsAreDisabled","prepareProjectRecordDirectories","resolveProjectSelection","createAliasPaths","TtscPrecompilation","resolveCompilerEnvironment","createTransformCacheKey","transformCacheEpoch","TERMINAL_TRANSFORM_GENERATIONS","TtscUnstableGenerationError","preparePluginBuildEnvironments","replaysTerminalGeneration","notifyRejectedGenerationInputs","evictGeneration","awaitOrEvict","TRANSFORM_RESULT_FILESYSTEM","transformCacheTrustsNotifications","withdrawGenerationNotifications","settleProjectMutationEvents","TtscGenerationProof","selectCachedGenerationAction","deliverCachedTransform","transformProject","TRANSFORM_CACHE_MEMBERSHIP_POLICIES","TRANSFORM_CACHE_SESSIONS","TRANSFORM_CACHE_CASE_POLICIES","TRANSFORM_CACHE_DEPENDENCY_WITNESSES","recordedDependencyWitnesses"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCG;AACG,SAAU,aAAa,CAC3B,EAAU,EACV,MAAc,EACd,OAAoC,EACpC,OAAiB,EACjB,KAA0B,EAC1B,KAA0B,EAAA;AAE1B,IAAA,OAAO,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;AAC5E;AAEA;;;;;AAKG;AACH,eAAe,gBAAgB,CAC7B,EAAU,EACV,MAAc,EACd,OAAoC,EACpC,OAAgB,EAChB,KAAqC,EACrC,KAAqC,EACrC,SAAkB,EAAA;AAElB,IAAA,MAAM,UAAU,GAAGA,uCAAmB,CAAC,KAAK,CAAC;AAC7C,IAAA,MAAM,KAAK,GAAG,KAAK,EAAE,SAAS,KAAK,IAAI;AACvC,IAAA,MAAM,KAAK,GAAG,KAAK,GAAG,EAAE,GAAGC,qBAAU,CAAC,EAAE,CAAC;AACzC,IAAA,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;AACxB,QAAA,OAAO,SAAS;IAClB;;;;;IAKA,IAAI,CAAC,KAAK,IAAIC,qCAAkB,CAAC,EAAE,CAAC,EAAE;AACpC,QAAA,OAAO,SAAS;IAClB;IACA,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;AAChC,IAAA,IAAIC,mCAAiB,CAAC,IAAI,CAAC,EAAE;AAC3B,QAAA,OAAO,SAAS;IAClB;AACA,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_POLICIES } from './cache/TRANSFORM_CACHE_CASE_POLICIES.mjs';
|
|
6
6
|
import { TRANSFORM_CACHE_DEPENDENCY_WITNESSES } from './cache/TRANSFORM_CACHE_DEPENDENCY_WITNESSES.mjs';
|
|
7
|
+
import { TRANSFORM_CACHE_MEMBERSHIP_POLICIES } from './cache/TRANSFORM_CACHE_MEMBERSHIP_POLICIES.mjs';
|
|
7
8
|
import { TRANSFORM_RESULT_FILESYSTEM } from './cache/TRANSFORM_RESULT_FILESYSTEM.mjs';
|
|
8
9
|
import { awaitOrEvict } from './cache/awaitOrEvict.mjs';
|
|
9
10
|
import { createTransformCacheKey } from './cache/createTransformCacheKey.mjs';
|
|
@@ -20,6 +21,7 @@ import { transformProject } from './generation/transformProject.mjs';
|
|
|
20
21
|
import { preparePluginBuildEnvironments } from './inputs/preparePluginBuildEnvironments.mjs';
|
|
21
22
|
import { TRANSFORM_CACHE_SESSIONS } from './session/TRANSFORM_CACHE_SESSIONS.mjs';
|
|
22
23
|
import { settleProjectMutationEvents } from './tracker/settleProjectMutationEvents.mjs';
|
|
24
|
+
import { resolveCompilerEnvironment } from './tsconfig/resolveCompilerEnvironment.mjs';
|
|
23
25
|
import { resolveProjectSelection } from './tsconfig/resolveProjectSelection.mjs';
|
|
24
26
|
import { isDeclarationFile } from './utils/isDeclarationFile.mjs';
|
|
25
27
|
import { isHostWrapperQuery } from './utils/isHostWrapperQuery.mjs';
|
|
@@ -125,8 +127,10 @@ async function runTransformTtsc(id, source, options, aliases, cache, hooks, prep
|
|
|
125
127
|
if (!preparing && cache !== undefined) {
|
|
126
128
|
TtscPrecompilation.start(cache, options, aliasPaths, (entry, text) => runTransformTtsc(entry, text, options, aliases, cache, { ...hooks, exactPath: true, projectSelection: undefined }, true));
|
|
127
129
|
}
|
|
130
|
+
const compilerEnvironment = resolveCompilerEnvironment(options.runExternalCode);
|
|
128
131
|
const key = createTransformCacheKey({
|
|
129
132
|
aliasPaths,
|
|
133
|
+
compilerEnvironment,
|
|
130
134
|
compilerOptions: options.compilerOptions,
|
|
131
135
|
plugins: options.plugins,
|
|
132
136
|
projectRoot: selectedProjectRoot,
|
|
@@ -241,6 +245,11 @@ async function runTransformTtsc(id, source, options, aliases, cache, hooks, prep
|
|
|
241
245
|
transformed = transformProject({
|
|
242
246
|
aliasPaths,
|
|
243
247
|
compilerOptions: options.compilerOptions,
|
|
248
|
+
compilerEnvironment,
|
|
249
|
+
runExternalCode: options.runExternalCode,
|
|
250
|
+
compilerMembership: cache === undefined
|
|
251
|
+
? undefined
|
|
252
|
+
: TRANSFORM_CACHE_MEMBERSHIP_POLICIES.get(cache)?.get(key),
|
|
244
253
|
projectRoot: selectedProjectRoot,
|
|
245
254
|
currentFile: file,
|
|
246
255
|
currentSource: source,
|
|
@@ -292,6 +301,15 @@ async function runTransformTtsc(id, source, options, aliases, cache, hooks, prep
|
|
|
292
301
|
TRANSFORM_CACHE_DEPENDENCY_WITNESSES.set(cache, witnesses);
|
|
293
302
|
}
|
|
294
303
|
witnesses.set(key, cached.externalDependencyInputs ?? []);
|
|
304
|
+
const membership = cached.compilerMembership;
|
|
305
|
+
if (membership !== undefined) {
|
|
306
|
+
let policies = TRANSFORM_CACHE_MEMBERSHIP_POLICIES.get(cache);
|
|
307
|
+
if (policies === undefined) {
|
|
308
|
+
policies = new Map();
|
|
309
|
+
TRANSFORM_CACHE_MEMBERSHIP_POLICIES.set(cache, policies);
|
|
310
|
+
}
|
|
311
|
+
policies.set(key, membership);
|
|
312
|
+
}
|
|
295
313
|
const reported = cached.membershipPolicy.useCaseSensitiveFileNames;
|
|
296
314
|
if (reported !== undefined) {
|
|
297
315
|
let policies = TRANSFORM_CACHE_CASE_POLICIES.get(cache);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformTtsc.mjs","sources":["../../../src/core/transform/transformTtsc.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"transformTtsc.mjs","sources":["../../../src/core/transform/transformTtsc.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AAE;AACpB,oBAAA,mCAAmC,CAAC,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAC;gBAC1D;AACA,gBAAA,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC;YAC/B;AACA,YAAA,MAAM,QAAQ,GAAG,MAAM,CAAC,gBAAgB,CAAC,yBAAyB;AAClE,YAAA,IAAI,QAAQ,KAAK,SAAS,EAAE;gBAC1B,IAAI,QAAQ,GAAG,6BAA6B,CAAC,GAAG,CAAC,KAAK,CAAC;AACvD,gBAAA,IAAI,QAAQ,KAAK,SAAS,EAAE;AAC1B,oBAAA,QAAQ,GAAG,IAAI,GAAG,EAAE;AACpB,oBAAA,6BAA6B,CAAC,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAC;gBACpD;AACA,gBAAA,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC;YAC7B;QACF;AACA,QAAA,IAAI,SAAS;AAAE,YAAA,OAAO,SAAS;AAC/B,QAAA,OAAO,sBAAsB,CAAC;YAC5B,KAAK;YACL,MAAM;YACN,UAAU;YACV,GAAG;YACH,KAAK;YACL,IAAI;YACJ,MAAM;YACN,KAAK;AACL,YAAA,SAAS,EAAE,cAAc;AAC1B,SAAA,CAAC;IACJ;AACF;;;;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Captured argument transport and the policy used to derive it from
|
|
3
|
+
* inheritance.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/common.md#principled-implementation The digest describes actual effective argv/cwd; the optional override lets detached readers derive the same invocation under current inheritance.
|
|
6
|
+
* @evidence contracts/common.md#clear-and-simple-design Two scalar facts cross generation and persisted-record boundaries without retaining environment objects.
|
|
7
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts Missing witnesses remain unknown and cannot certify an older record's invocation.
|
|
8
|
+
* @evidence contracts/common.md#meaningful-documentation Native prose distinguishes transport identity from the override policy needed for later comparison.
|
|
9
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation The value carries an opaque digest and boolean; normalization belongs to its producer.
|
|
10
|
+
* @evidenceExclude contracts/performance.md#efficient-algorithms This interface performs no computation.
|
|
11
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work This interface establishes no reuse verdict.
|
|
12
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources This interface owns no runtime resource.
|
|
13
|
+
*/
|
|
14
|
+
export interface TtscCompilerArgumentsWitness {
|
|
15
|
+
/** SHA-256 of the normalized effective argv/cwd transport tuple. */
|
|
16
|
+
identity: string;
|
|
17
|
+
/** Explicit override; omission preserves inherited compiler arguments. */
|
|
18
|
+
runExternalCode?: boolean;
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Captured argument transport and the policy used to derive it from
|
|
3
|
+
* inheritance.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/common.md#principled-implementation The digest describes actual effective argv/cwd; the optional override lets detached readers derive the same invocation under current inheritance.
|
|
6
|
+
* @evidence contracts/common.md#clear-and-simple-design Two scalar facts cross generation and persisted-record boundaries without retaining environment objects.
|
|
7
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts Missing witnesses remain unknown and cannot certify an older record's invocation.
|
|
8
|
+
* @evidence contracts/common.md#meaningful-documentation Native prose distinguishes transport identity from the override policy needed for later comparison.
|
|
9
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation The value carries an opaque digest and boolean; normalization belongs to its producer.
|
|
10
|
+
* @evidenceExclude contracts/performance.md#efficient-algorithms This interface performs no computation.
|
|
11
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work This interface establishes no reuse verdict.
|
|
12
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources This interface owns no runtime resource.
|
|
13
|
+
*/
|
|
14
|
+
export interface TtscCompilerArgumentsWitness {
|
|
15
|
+
/** SHA-256 of the normalized effective argv/cwd transport tuple. */
|
|
16
|
+
identity: string;
|
|
17
|
+
/** Explicit override; omission preserves inherited compiler arguments. */
|
|
18
|
+
runExternalCode?: boolean;
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Captured argument transport and the policy used to derive it from
|
|
3
|
+
* inheritance.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/common.md#principled-implementation The digest describes actual effective argv/cwd; the optional override lets detached readers derive the same invocation under current inheritance.
|
|
6
|
+
* @evidence contracts/common.md#clear-and-simple-design Two scalar facts cross generation and persisted-record boundaries without retaining environment objects.
|
|
7
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts Missing witnesses remain unknown and cannot certify an older record's invocation.
|
|
8
|
+
* @evidence contracts/common.md#meaningful-documentation Native prose distinguishes transport identity from the override policy needed for later comparison.
|
|
9
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation The value carries an opaque digest and boolean; normalization belongs to its producer.
|
|
10
|
+
* @evidenceExclude contracts/performance.md#efficient-algorithms This interface performs no computation.
|
|
11
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work This interface establishes no reuse verdict.
|
|
12
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources This interface owns no runtime resource.
|
|
13
|
+
*/
|
|
14
|
+
export interface TtscCompilerArgumentsWitness {
|
|
15
|
+
/** SHA-256 of the normalized effective argv/cwd transport tuple. */
|
|
16
|
+
identity: string;
|
|
17
|
+
/** Explicit override; omission preserves inherited compiler arguments. */
|
|
18
|
+
runExternalCode?: boolean;
|
|
19
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TtscCompilerArgumentsWitness } from "./TtscCompilerArgumentsWitness.cjs";
|
|
2
|
+
/**
|
|
3
|
+
* Fingerprint the exact normalized environment chosen for this invocation.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/common.md#principled-implementation The digest uses supplied effective argv/cwd rather than rereading a later parent environment; the supplied override retains its inheritance meaning.
|
|
6
|
+
* @evidence contracts/common.md#clear-and-simple-design One compact witness travels with generations and persisted host records.
|
|
7
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts No compiler result or filesystem proof is inferred from argument identity.
|
|
8
|
+
* @evidence contracts/common.md#meaningful-documentation Native prose states the normalized-snapshot premise and capture timing.
|
|
9
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation The environment owner has already normalized native names; tuple spelling is preserved.
|
|
10
|
+
* @evidence contracts/performance.md#efficient-algorithms Tuple encoding scans argument/cwd text and SHA-256 scans the encoded bytes and retain only a fixed digest and optional boolean.
|
|
11
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work This projection retains no previous result or in-flight operation.
|
|
12
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The returned scalar witness transfers to its caller without handles or history.
|
|
13
|
+
*/
|
|
14
|
+
export declare function captureCompilerArguments(environment: NodeJS.ProcessEnv, runExternalCode?: boolean): TtscCompilerArgumentsWitness;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TtscCompilerArgumentsWitness } from "./TtscCompilerArgumentsWitness.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Fingerprint the exact normalized environment chosen for this invocation.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/common.md#principled-implementation The digest uses supplied effective argv/cwd rather than rereading a later parent environment; the supplied override retains its inheritance meaning.
|
|
6
|
+
* @evidence contracts/common.md#clear-and-simple-design One compact witness travels with generations and persisted host records.
|
|
7
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts No compiler result or filesystem proof is inferred from argument identity.
|
|
8
|
+
* @evidence contracts/common.md#meaningful-documentation Native prose states the normalized-snapshot premise and capture timing.
|
|
9
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation The environment owner has already normalized native names; tuple spelling is preserved.
|
|
10
|
+
* @evidence contracts/performance.md#efficient-algorithms Tuple encoding scans argument/cwd text and SHA-256 scans the encoded bytes and retain only a fixed digest and optional boolean.
|
|
11
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work This projection retains no previous result or in-flight operation.
|
|
12
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The returned scalar witness transfers to its caller without handles or history.
|
|
13
|
+
*/
|
|
14
|
+
export declare function captureCompilerArguments(environment: NodeJS.ProcessEnv, runExternalCode?: boolean): TtscCompilerArgumentsWitness;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TtscCompilerArgumentsWitness } from "./TtscCompilerArgumentsWitness";
|
|
2
|
+
/**
|
|
3
|
+
* Fingerprint the exact normalized environment chosen for this invocation.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/common.md#principled-implementation The digest uses supplied effective argv/cwd rather than rereading a later parent environment; the supplied override retains its inheritance meaning.
|
|
6
|
+
* @evidence contracts/common.md#clear-and-simple-design One compact witness travels with generations and persisted host records.
|
|
7
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts No compiler result or filesystem proof is inferred from argument identity.
|
|
8
|
+
* @evidence contracts/common.md#meaningful-documentation Native prose states the normalized-snapshot premise and capture timing.
|
|
9
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation The environment owner has already normalized native names; tuple spelling is preserved.
|
|
10
|
+
* @evidence contracts/performance.md#efficient-algorithms Tuple encoding scans argument/cwd text and SHA-256 scans the encoded bytes and retain only a fixed digest and optional boolean.
|
|
11
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work This projection retains no previous result or in-flight operation.
|
|
12
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The returned scalar witness transfers to its caller without handles or history.
|
|
13
|
+
*/
|
|
14
|
+
export declare function captureCompilerArguments(environment: NodeJS.ProcessEnv, runExternalCode?: boolean): TtscCompilerArgumentsWitness;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var hashText = require('../utils/hashText.js');
|
|
4
|
+
var compilerEnvironmentIdentity = require('./compilerEnvironmentIdentity.js');
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Fingerprint the exact normalized environment chosen for this invocation.
|
|
8
|
+
*
|
|
9
|
+
* @evidence contracts/common.md#principled-implementation The digest uses supplied effective argv/cwd rather than rereading a later parent environment; the supplied override retains its inheritance meaning.
|
|
10
|
+
* @evidence contracts/common.md#clear-and-simple-design One compact witness travels with generations and persisted host records.
|
|
11
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts No compiler result or filesystem proof is inferred from argument identity.
|
|
12
|
+
* @evidence contracts/common.md#meaningful-documentation Native prose states the normalized-snapshot premise and capture timing.
|
|
13
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation The environment owner has already normalized native names; tuple spelling is preserved.
|
|
14
|
+
* @evidence contracts/performance.md#efficient-algorithms Tuple encoding scans argument/cwd text and SHA-256 scans the encoded bytes and retain only a fixed digest and optional boolean.
|
|
15
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work This projection retains no previous result or in-flight operation.
|
|
16
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The returned scalar witness transfers to its caller without handles or history.
|
|
17
|
+
*/
|
|
18
|
+
function captureCompilerArguments(environment, runExternalCode) {
|
|
19
|
+
return {
|
|
20
|
+
identity: hashText.hashText(compilerEnvironmentIdentity.compilerEnvironmentIdentity(environment)),
|
|
21
|
+
...(runExternalCode === undefined ? {} : { runExternalCode }),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
exports.captureCompilerArguments = captureCompilerArguments;
|
|
26
|
+
//# sourceMappingURL=captureCompilerArguments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"captureCompilerArguments.js","sources":["../../../../src/core/transform/tsconfig/captureCompilerArguments.ts"],"sourcesContent":[null],"names":["hashText","compilerEnvironmentIdentity"],"mappings":";;;;;AAIA;;;;;;;;;;;AAWG;AACG,SAAU,wBAAwB,CACtC,WAA8B,EAC9B,eAAyB,EAAA;IAEzB,OAAO;AACL,QAAA,QAAQ,EAAEA,iBAAQ,CAACC,uDAA2B,CAAC,WAAW,CAAC,CAAC;AAC5D,QAAA,IAAI,eAAe,KAAK,SAAS,GAAG,EAAE,GAAG,EAAE,eAAe,EAAE,CAAC;KAC9D;AACH;;;;"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { hashText } from '../utils/hashText.mjs';
|
|
2
|
+
import { compilerEnvironmentIdentity } from './compilerEnvironmentIdentity.mjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Fingerprint the exact normalized environment chosen for this invocation.
|
|
6
|
+
*
|
|
7
|
+
* @evidence contracts/common.md#principled-implementation The digest uses supplied effective argv/cwd rather than rereading a later parent environment; the supplied override retains its inheritance meaning.
|
|
8
|
+
* @evidence contracts/common.md#clear-and-simple-design One compact witness travels with generations and persisted host records.
|
|
9
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts No compiler result or filesystem proof is inferred from argument identity.
|
|
10
|
+
* @evidence contracts/common.md#meaningful-documentation Native prose states the normalized-snapshot premise and capture timing.
|
|
11
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation The environment owner has already normalized native names; tuple spelling is preserved.
|
|
12
|
+
* @evidence contracts/performance.md#efficient-algorithms Tuple encoding scans argument/cwd text and SHA-256 scans the encoded bytes and retain only a fixed digest and optional boolean.
|
|
13
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work This projection retains no previous result or in-flight operation.
|
|
14
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The returned scalar witness transfers to its caller without handles or history.
|
|
15
|
+
*/
|
|
16
|
+
function captureCompilerArguments(environment, runExternalCode) {
|
|
17
|
+
return {
|
|
18
|
+
identity: hashText(compilerEnvironmentIdentity(environment)),
|
|
19
|
+
...(runExternalCode === undefined ? {} : { runExternalCode }),
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { captureCompilerArguments };
|
|
24
|
+
//# sourceMappingURL=captureCompilerArguments.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"captureCompilerArguments.mjs","sources":["../../../../src/core/transform/tsconfig/captureCompilerArguments.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAIA;;;;;;;;;;;AAWG;AACG,SAAU,wBAAwB,CACtC,WAA8B,EAC9B,eAAyB,EAAA;IAEzB,OAAO;AACL,QAAA,QAAQ,EAAE,QAAQ,CAAC,2BAA2B,CAAC,WAAW,CAAC,CAAC;AAC5D,QAAA,IAAI,eAAe,KAAK,SAAS,GAAG,EAAE,GAAG,EAAE,eAAe,EAAE,CAAC;KAC9D;AACH;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Identify the argument transport in a normalized invocation snapshot.
|
|
3
|
+
*
|
|
4
|
+
* @evidence contracts/common.md#principled-implementation The ordered pair retains raw argv and cwd; absence differs from explicit empty argv.
|
|
5
|
+
* @evidence contracts/common.md#clear-and-simple-design All cache owners use this transport projection, separate from capture.
|
|
6
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts No argument is dropped based on a consumer or expected output.
|
|
7
|
+
* @evidence contracts/common.md#meaningful-documentation The headline states the normalized-snapshot premise and transport scope.
|
|
8
|
+
* @evidence contracts/portability.md#os-neutral-implementation resolveCompilerEnvironment normalizes native environment names; cwd spelling and JSON argv remain unchanged.
|
|
9
|
+
* @evidence contracts/performance.md#efficient-algorithms Serialization scans two transport strings and allocates their encoded bytes.
|
|
10
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work This projection owns no cache or shared operation.
|
|
11
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources Only the returned string escapes the call.
|
|
12
|
+
*/
|
|
13
|
+
export declare function compilerEnvironmentIdentity(env?: NodeJS.ProcessEnv): string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Identify the argument transport in a normalized invocation snapshot.
|
|
3
|
+
*
|
|
4
|
+
* @evidence contracts/common.md#principled-implementation The ordered pair retains raw argv and cwd; absence differs from explicit empty argv.
|
|
5
|
+
* @evidence contracts/common.md#clear-and-simple-design All cache owners use this transport projection, separate from capture.
|
|
6
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts No argument is dropped based on a consumer or expected output.
|
|
7
|
+
* @evidence contracts/common.md#meaningful-documentation The headline states the normalized-snapshot premise and transport scope.
|
|
8
|
+
* @evidence contracts/portability.md#os-neutral-implementation resolveCompilerEnvironment normalizes native environment names; cwd spelling and JSON argv remain unchanged.
|
|
9
|
+
* @evidence contracts/performance.md#efficient-algorithms Serialization scans two transport strings and allocates their encoded bytes.
|
|
10
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work This projection owns no cache or shared operation.
|
|
11
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources Only the returned string escapes the call.
|
|
12
|
+
*/
|
|
13
|
+
export declare function compilerEnvironmentIdentity(env?: NodeJS.ProcessEnv): string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Identify the argument transport in a normalized invocation snapshot.
|
|
3
|
+
*
|
|
4
|
+
* @evidence contracts/common.md#principled-implementation The ordered pair retains raw argv and cwd; absence differs from explicit empty argv.
|
|
5
|
+
* @evidence contracts/common.md#clear-and-simple-design All cache owners use this transport projection, separate from capture.
|
|
6
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts No argument is dropped based on a consumer or expected output.
|
|
7
|
+
* @evidence contracts/common.md#meaningful-documentation The headline states the normalized-snapshot premise and transport scope.
|
|
8
|
+
* @evidence contracts/portability.md#os-neutral-implementation resolveCompilerEnvironment normalizes native environment names; cwd spelling and JSON argv remain unchanged.
|
|
9
|
+
* @evidence contracts/performance.md#efficient-algorithms Serialization scans two transport strings and allocates their encoded bytes.
|
|
10
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work This projection owns no cache or shared operation.
|
|
11
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources Only the returned string escapes the call.
|
|
12
|
+
*/
|
|
13
|
+
export declare function compilerEnvironmentIdentity(env?: NodeJS.ProcessEnv): string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Identify the argument transport in a normalized invocation snapshot.
|
|
5
|
+
*
|
|
6
|
+
* @evidence contracts/common.md#principled-implementation The ordered pair retains raw argv and cwd; absence differs from explicit empty argv.
|
|
7
|
+
* @evidence contracts/common.md#clear-and-simple-design All cache owners use this transport projection, separate from capture.
|
|
8
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts No argument is dropped based on a consumer or expected output.
|
|
9
|
+
* @evidence contracts/common.md#meaningful-documentation The headline states the normalized-snapshot premise and transport scope.
|
|
10
|
+
* @evidence contracts/portability.md#os-neutral-implementation resolveCompilerEnvironment normalizes native environment names; cwd spelling and JSON argv remain unchanged.
|
|
11
|
+
* @evidence contracts/performance.md#efficient-algorithms Serialization scans two transport strings and allocates their encoded bytes.
|
|
12
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work This projection owns no cache or shared operation.
|
|
13
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources Only the returned string escapes the call.
|
|
14
|
+
*/
|
|
15
|
+
function compilerEnvironmentIdentity(env = process.env) {
|
|
16
|
+
return JSON.stringify([
|
|
17
|
+
env.TTSC_TSGO_ARGS ?? null,
|
|
18
|
+
env.TTSC_TSGO_ARGS_CWD ?? null,
|
|
19
|
+
]);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
exports.compilerEnvironmentIdentity = compilerEnvironmentIdentity;
|
|
23
|
+
//# sourceMappingURL=compilerEnvironmentIdentity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compilerEnvironmentIdentity.js","sources":["../../../../src/core/transform/tsconfig/compilerEnvironmentIdentity.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;;;;;;;;;AAWG;SACa,2BAA2B,CACzC,GAAA,GAAyB,OAAO,CAAC,GAAG,EAAA;IAEpC,OAAO,IAAI,CAAC,SAAS,CAAC;QACpB,GAAG,CAAC,cAAc,IAAI,IAAI;QAC1B,GAAG,CAAC,kBAAkB,IAAI,IAAI;AAC/B,KAAA,CAAC;AACJ;;;;"}
|