okikio / bundlejs

An online tool to quickly bundle & minify your projects, while viewing the compressed gzip/brotli bundle size, all running locally on your browser.
https://bundlejs.com
MIT License
751 stars 13 forks source link

Add "eval" button to run the builded code #16

Open artalar opened 2 years ago

artalar commented 2 years ago

It would be nice to have "eval" button to run the builded code. Btw. May, "Run" button should be renamed to "Build"?

okikio commented 2 years ago

That's an interesting idea

okikio commented 2 years ago

I've renamed the "Run" button to "Build", it'll probs take me a bit before I get a fully functional "eval" up and running

okikio commented 2 years ago

Would you be ok with something like this?

artalar commented 2 years ago

Browser console is always better, why don't you want to use it? imho there is no need to separate log view.

okikio commented 2 years ago

It looked cool and it worked on mobile (mobile isn't important but I think it's still good to try) that's why I was looking for how I would approach this, either way is fine for me.

okikio commented 2 years ago

I'm working on moving bundlejs to Astro, after that I'll add this as a feature

artalar commented 2 years ago

it worked on mobile

Very good point

okikio commented 1 year ago

This might happen in a couple weeks 😉

okikio commented 1 year ago

@artalar It's seeming really close, especially since the bundlejs API is out https://twitter.com/jsbundle/status/1634455567321255936?s=20

https://codepen.io/okikio/pen/LYJedgJ?editors=1010