plugin: don't panic on missing files#313
Conversation
When using the build API from Vite, intermediate files are not written it seems.
|
Would you share your case about using the build API form Vite? |
|
@qmhc I'm overhauling the Qwik build scripts and they do a bunch of stuff, so it's better to build via the API |
|
Thanks for your sharing. Is the |
|
Yes because the files aren't written somehow |
|
I tested locally, it's seems a issue of Vite. If there a vite config file in root directory and you use API to run Vite, two processes will be created in the same time (plugin is created twice), which will take a error (one process removed some files and the other process cannot file them). I remove the config file then get it working. Or don't specify |
|
@qmhc wow good catch! Did you open an issue yet? |
|
Well, I searched the Vite documentation and could not find any description about the plugin name is identifier. So duplicate plugin names may work. It requires users to avoid creating duplicate plugins. |
When using the build API from Vite instead of the CLI, intermediate files are not written it seems. The resulting .d.ts file is correct.