Replies: 2 comments 3 replies
-
Ooooh wait. I just realized that I could have probably had the same effect just by enabling source maps. 😅 I just tried it and enabling source maps keeps the small bundles, but doesn't allow REPL experiments in Firefox. The REPL seems to work OK in V8-based browsers. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks @heyarne - I've not played around too much with rollup config magic, but I will add a link to this thread from the wiki, just in case someone else might be interested in this... is there any difference to the normal vite dev-mode experience at all? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I don't know if there's any interest in this, but I've managed to get a vite build (non-dev) of the examples that preserves the file structure as well as variable and file names. This allows me to step through examples using the Firefox debugger, and play around with functions interactively (in the browser REPL). It was an idea that I had when looking at examples and trying to understand, line by line, what different data structures look like and what exactly different functions do to them.
My
vite.config.ts
looks like this:The downsides are that the bundles are much bigger and slower to load, because the
@thi.ng/umbrella
modules are quite fine-grained. It preserves tree-shaking though, which is cool!I don't know if this is any more useful to anyone than running the examples locally using a dev build, but I thought I'd share it just in case. :)
Beta Was this translation helpful? Give feedback.
All reactions