json helper that end with ?commonjs-proxy
go through vite:json
then throws a error
#1679
Closed
2 of 3 tasks
Labels
Describe the bug
If a commonjs dependence imports a json, vite throws an error.
By manually logging the id passed to
vite:json
:It shows that the json helper come out from
@rollup/plugin-commonjs
get recognized as a "json" and go throughvite:json
plugin.Reproduction
Add a commonjs dependence that imports a json, like
markdown-it
.System Info
vite
version: 2.0.0-beta.45Logs (Optional if provided reproduction)
The text was updated successfully, but these errors were encountered: