Skip to content

Commit a181f86

Browse files
committed
comment
1 parent 7740b6d commit a181f86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function validateImportPlugin(): Plugin {
4444
return `export {}`
4545
}
4646
},
47-
// need a different way to probe module graph for dev and build
47+
// for dev, use DevEnvironment.moduleGraph during post transform
4848
transform: {
4949
order: 'post',
5050
async handler(_code, id) {
@@ -62,6 +62,7 @@ export function validateImportPlugin(): Plugin {
6262
}
6363
},
6464
},
65+
// for build, use PluginContext.getModuleInfo during generateBundle
6566
generateBundle() {
6667
if (this.environment.mode === 'build') {
6768
const serverOnly = getImportChainBuild(

0 commit comments

Comments
 (0)