mirror of
https://github.com/morluto/rea.git
synced 2026-10-29 19:05:45 +00:00
feat(javascript): add webpack and rspack runtime adapters
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user