Open denis-ismailaj opened 9 months ago
Same error for me
Sep 24 2024 - same error, issue still there
@denis-ismailaj Did you find a workaround for this? I can't really downgrade crx
to 1.x
as I need to the new side panel feature.
@ngryman Unfortunately, I did not. I ended up just dealing with the additional hassle of doing vite build
every time.
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 thecrx
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 ofvite-plugin
to be the latest ones, but that didn't lead to anything.Logs
System Info
Severity
annoyance