feat(javascript): add webpack and rspack runtime adapters

This commit is contained in:
N0zoM1z0 committed 2026-07-18 00:31:51 +08:00
1 parent 9766fc04c1
commit 44c70176b8
67 files changed
+1125 -312

No files matched your search

@@ -35,6 +35,7 @@ export interface JavaScriptArtifactGraphContext {
readonly fileNodes: Map<string, ApplicationNode>;
readonly assetNodes: Map<string, ApplicationNode>;
readonly sourceModuleNodes: Map<string, ApplicationNode>;
readonly chunkNodes: Map<string, ApplicationNode>;
readonly moduleNodes: Map<string, ApplicationNode>;
readonly containerNodes: Map<string, ApplicationNode>;
}
@@ -315,6 +316,13 @@ export const linkElectronRoleToAsset = (
export const moduleLookupKey = (path: string, moduleKey: string): string =>
`${path}\0${moduleKey}`;
/** Deterministic key for one recovered bundler chunk inside a bundle asset. */
export const chunkLookupKey = (
path: string,
runtime: string,
chunkKey: string,
): string => `${path}\0${runtime}\0${chunkKey}`;
/** Resolve a relative static specifier without escaping the artifact root. */
export const resolveArtifactPath = (
specifier: string,