-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
after vite3.0 not listening for changes to the JSON file #9521
Comments
I noticed the same problem in my own project. From my testing, versions Hopefully this helps the Vite devs. |
In import json from './tst.json?init'; // makes it hot reloadable or import json from './tst.json?inline'; // makes it hot reloadable Reproduction: on StackBlitz ⚡️ Not sure which is better but both work. Best documentation I could find was https://vitejs.dev/guide/assets.html#importing-asset-as-url but that wasn't clear nor did it list |
Describe the bug
Is it canceled the monitoring of the json file? or need some config
2.9.14 and the previous version no problem
Reproduction
https://stackblitz.com/edit/vitejs-vite-renxka?file=tst.json,package.json,main.js,demo.js,tst.js&terminal=dev
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: