Skip to content

Commit 705c821

Browse files
committed
chore: todo
1 parent f4892d2 commit 705c821

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/plugin-rsc/src/plugins/import-environment.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ export function vitePluginImportEnvironment(
133133
}
134134

135135
// TODO: environmentImportMetaMap structure seems still awkward
136+
// should be [sourceEnv][targetEnv][resolvedId]
137+
136138
// Track discovered entry, keyed by [sourceEnv][resolvedId]
137139
const sourceEnv = this.environment.name
138140
manager.environmentImportMetaMap[sourceEnv] ??= {}
@@ -188,6 +190,9 @@ export function vitePluginImportEnvironment(
188190
generateBundle(_options, bundle) {
189191
if (this.environment.name === 'client') return
190192

193+
// TODO: delay `fileName` assigment to right before writeEnvironmentImportsManifest
194+
// TODO: we can just hold old `bundles: Record<string, ..>` in manager
195+
191196
// Track output filenames for discovered environment imports
192197
// Only set fileName when this bundle's environment matches the target
193198
for (const [fileName, chunk] of Object.entries(bundle)) {

0 commit comments

Comments
 (0)