Skip to content

Commit 29f4440

Browse files
committed
chore: cleanup
1 parent 1efe394 commit 29f4440

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

packages/plugin-rsc/src/plugin.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,12 @@ class RscPluginManager {
125125
{}
126126
serverReferenceMetaMap: Record<string, ServerRerferenceMeta> = {}
127127
serverResourcesMetaMap: Record<string, { key: string }> = {}
128-
// Keyed by [sourceEnv][resolvedId] to support same module imported from multiple environments
129128
environmentImportMetaMap: Record<
130-
string,
131-
Record<string, EnvironmentImportMeta>
129+
string, // sourceEnv
130+
Record<
131+
string, // resolvedId
132+
EnvironmentImportMeta
133+
>
132134
> = {}
133135

134136
stabilize(): void {

packages/plugin-rsc/types/index.d.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@ declare global {
44
loadCss: (importer?: string) => import('react').ReactNode
55
loadModule: <T>(environmentName: string, entryName?: string) => Promise<T>
66
loadBootstrapScriptContent: (entryName: string) => Promise<string>
7-
8-
// TODO: loadModule alternative
7+
/**
8+
* TODO: jsdoc
9+
* @experimental
10+
*/
911
import: <T>(specifier, attributes: { environment: string }) => Promise<T>
10-
11-
// TODO: loadBootstrapScriptContent alternative?
12-
// import: (specifier, attributes: { asset: string }) => Promise<string>
1312
}
1413
}
1514

0 commit comments

Comments
 (0)