File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
packages/react-router-dev/vite Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @react-router/dev " : patch
3+ ---
4+
5+ Improve chunk error logging when a chunk cannot be found during the build
Original file line number Diff line number Diff line change 365365- ThornWu
366366- tiborbarsi
367367- timdorr
368+ - timfisher
368369- TkDodo
369370- tkindy
370371- tlinhart
Original file line number Diff line number Diff line change @@ -331,12 +331,12 @@ const getReactRouterManifestBuildAssets = (
331331 prependedAssetFilePaths : string [ ] = [ ]
332332) : ReactRouterManifest [ "entry" ] & { css : string [ ] } => {
333333 let entryChunk = resolveChunk ( ctx , viteManifest , entryFilePath ) ;
334- invariant ( entryChunk , " Chunk not found" ) ;
334+ invariant ( entryChunk , ` Chunk not found: ${ entryFilePath } ` ) ;
335335
336336 // This is here to support prepending client entry assets to the root route
337337 let prependedAssetChunks = prependedAssetFilePaths . map ( ( filePath ) => {
338338 let chunk = resolveChunk ( ctx , viteManifest , filePath ) ;
339- invariant ( chunk , " Chunk not found" ) ;
339+ invariant ( chunk , ` Chunk not found: ${ filePath } ` ) ;
340340 return chunk ;
341341 } ) ;
342342
You can’t perform that action at this time.
0 commit comments