-
Notifications
You must be signed in to change notification settings - Fork 13
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
Lots of generated static js files after updating to 0.7.8 #125
Comments
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 😢 |
Downgrade `codemirror-json-schema` to fix the massive bundle size based on the comments [here](jsonnext/codemirror-json-schema#125). After downgrading this is the new bundled output: ```sh > tsc && vite build vite v4.5.3 building for production... ✓ 1481 modules transformed. dist/index.html 0.65 kB │ gzip: 0.41 kB dist/assets/favicon-2732bf7e.ico 15.41 kB dist/assets/index-1905dbdc.css 52.20 kB │ gzip: 9.56 kB dist/assets/index-5b44d2c3.js 1,662.44 kB │ gzip: 526.12 kB ``` Thanks @mistermoe for searching github issues with me! :) Co-authored-by: Moe Jangda <[email protected]>
Same issue here, any update @acao ? Rolling back to a previous version for the moment |
I think this code is the culprit codemirror-json-schema/src/utils/markdown.ts Lines 30 to 38 in 4fd7cc6
We should use the "Fine-grained Bundle" documented here. Otherwise, "By default, the full bundle of 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 confirm that I’m experiencing the same issue—a lot of Shiki files are generated when using version 0.7.8. I’ve reverted to version 0.7.0 as a workaround. |
So I was getting out-of-memory errors running
I could fix with Again, I'm willing to submit a PR, but I could use guidance on what languages are actually used. Tagging @imolorhe because at this point I'm wondering about how much CO2 this feature has generated lol. |
To be clear, there was no change to the bundle size of the package itself, but the dynamic chunks from shiki increased the size of the built project on disk. This issue should be fixed in the next version. |
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.The text was updated successfully, but these errors were encountered: