We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7740b6d commit a181f86Copy full SHA for a181f86
packages/plugin-rsc/src/plugins/validate-import.ts
@@ -44,7 +44,7 @@ export function validateImportPlugin(): Plugin {
44
return `export {}`
45
}
46
},
47
- // need a different way to probe module graph for dev and build
+ // for dev, use DevEnvironment.moduleGraph during post transform
48
transform: {
49
order: 'post',
50
async handler(_code, id) {
@@ -62,6 +62,7 @@ export function validateImportPlugin(): Plugin {
62
63
64
65
+ // for build, use PluginContext.getModuleInfo during generateBundle
66
generateBundle() {
67
if (this.environment.mode === 'build') {
68
const serverOnly = getImportChainBuild(
0 commit comments