Skip to content

Commit c7295d8

Browse files
committed
fix: validate during buildEnd
1 parent bb5f826 commit c7295d8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ export function validateImportPlugin(): Plugin {
6767
}
6868
},
6969
},
70-
// for build, use PluginContext.getModuleInfo during generateBundle
71-
generateBundle() {
70+
// for build, use PluginContext.getModuleInfo during buildEnd.
71+
// rollup shows multiple errors if there are other build error from `buildEnd(error)`.
72+
buildEnd() {
7273
if (this.environment.mode === 'build') {
7374
const serverOnly = getImportChainBuild(
7475
this,

0 commit comments

Comments
 (0)