The initial value loads fine, but it does not hot reload on changes to the package.json. This seems to work fine with other json files and only affects package.json files. I've also tried importing using raw: import pkgJson from '../package.json?raw', but I get the same result
Link to Minimal Reproducible Example
No response
Participation
[X] I am willing to submit a pull request for this issue.
What version of
vite
are you using?4.2.1
System info and storybook versions
System: Windows Binaries: npm: 8.19.3 node: 16.19.1 npmPackages:
Describe the Bug
I have a story that looks something like this:
The initial value loads fine, but it does not hot reload on changes to the package.json. This seems to work fine with other json files and only affects
package.json
files. I've also tried importing using raw:import pkgJson from '../package.json?raw'
, but I get the same resultLink to Minimal Reproducible Example
No response
Participation