Open oblak1 opened 3 months ago
also noticed this @oblak1 i will look into it!
Hi @acao! Were you able to look into this? Experiencing the same issue which affects performance of my app :cry:
Same issue here, any update @acao ? Rolling back to a previous version for the moment
I think this code is the culprit https://github.com/jsonnext/codemirror-json-schema/blob/4fd7cc69084bdad3c8c93d9d0f0a936fa120cbae/src/utils/markdown.ts#L30-L38
We should use the "Fine-grained Bundle" documented here. Otherwise, "By default, the full bundle of shiki
will be imported."
I'd PR a fix, but I'm not sure what language to import. JSON? (Do we even need to import a language at all?)
I'm using react v18.2 with vite 5.2.12 and nx v19.2.1
After updating to
codemirror-json-schema
to 0.7.8 from 0.7.0 I get a lot of autogenerated javascript files when building the project, attaching images before/after below. It generates a file for every language/platform such as wasm,angular,cpp etc.. It could have something to do with the new dep@shikijs/markdown-it
- afaik other packages stayed the same.