Skip to content

Commit

Permalink
feat: log a warning if dependency pre-bundling cannot be run (vitejs#…
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Aug 9, 2021
1 parent bcb6d75 commit 120f3b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/vite/src/node/optimizer/scan.ts
Expand Up @@ -79,7 +79,9 @@ export async function scanImports(config: ResolvedConfig): Promise<{
)

if (!entries.length) {
debug(`No entry HTML files detected`)
config.logger.warn(
'Could not determine entry point from rollupOptions or html files. Skipping dependency pre-bundling.'
)
return { deps: {}, missing: {} }
} else {
debug(`Crawling dependencies using entries:\n ${entries.join('\n ')}`)
Expand Down

0 comments on commit 120f3b9

Please sign in to comment.