vite-plugin
breaks Vite dev server when build.rollupOptions.input
s are present
#865
Open
1 of 2 tasks
Build tool
Vite
Where do you see the problem?
Describe the bug
Original issue context: In a Svelte project I added a typescript file (which was not referenced in the project) to
build.rollupOptions.input
so it was processed and outputted as a separate file with the intent to dynamically import it.This works when doing
npm run build
(vite build
), but when doingnpm run dev
(vite
) Rollup ends up trying to parse it as a javascript file.This only occurs when the
crx
plugin is present.Reproduction
To reproduce you only need an empty dir with these files in the root:
independent.ts
package.json
vite.config.js
Run:
Comment out
crx
plugin invite.config.js
Run:
I should note that the same thing happens with
vite@3
.I also tried overriding the build-related dependency versions of
vite-plugin
to be the latest ones, but that didn't lead to anything.Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: