File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
packages/plugin-rsc/src/plugins Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff 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 ) ) {
You can’t perform that action at this time.
0 commit comments