IndexXuan/vite-plugin-html-template

(!) Could not auto-determine entry point from rollupOptions or html files and there are no explicit optimizeDeps.include patterns. Skipping dependency pre-bundling.

eleven-net-cn opened this issue · 3 comments

(!) Could not auto-determine entry point from rollupOptions or html files and there are no explicit optimizeDeps.include patterns. Skipping dependency pre-bundling.

When I use vite-plugin-html-template, I must use optimizedeps.entries to make the pre-build effective, eg:

{
  optimizeDeps: {
    entries: [
      '/xxx/xxxx/index.html',
      '/xxx/xxxx/main.ts',
    ]
  }
}

Otherwise, the following message is displayed on the first startup (You can remove node_modules/.vite/deps to reproduce the problem).

(!) Could not auto-determine entry point from rollupOptions or html files and there are no explicit optimizeDeps.include patterns. Skipping dependency pre-bundling. 

PR is Welcome. Bro

I see this problem when I wrote pnpm dev run. Obviously for me was a typing error when I try to launch the app!!.