Why is solid start dev site so heavy?
I ran
pnpm create solid
, picked the basic template, then ran dev
to encounter almost 10mb of js being loaded. I'm aware that building will minify, bundle and tree shake most of this, but building takes almost 6 seconds to build an empty app, even when building after a succesful build.
Something as equally confusing is that the heaviest resource is 1.5mb of shikiji, a syntax highlighter.
I found this issue, maybe related? https://github.com/solidjs/solid-start/issues/1281GitHub
[Bug?]: onig.wasm from shikiji in build output · Issue #1281 · soli...
Duplicates I have searched the existing issues Latest version I have tested the latest version Current behavior 😯 onig.wasm from shikiji is emitted as asset in build. Expected behavior 🤔 No onig.wa...
3 Replies
Something as equally confusing is that the heaviest resource is 1.5mb of shikiji, a syntax highlighter.If that's in dev it's likely proactively loading it for the solid-error-overlay
GitHub
solid-error-overlay/examples/demo at main · lxsmnsyc/solid-error-ov...
Unstyled, dev error overlays for SolidJS. Contribute to lxsmnsyc/solid-error-overlay development by creating an account on GitHub.
Maybe you can try a light solid-js template with webpack 5. The GitHub link is: https://github.com/My-Project-Template/solid-ts-webpack5 😆
why not try to use Bun ? Bun is faster than NPM