bundlejs icon indicating copy to clipboard operation
bundlejs copied to clipboard

Add "eval" button to run the builded code

Open artalar opened this issue 2 years ago • 9 comments

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

artalar avatar Mar 06 '22 19:03 artalar

That's an interesting idea

okikio avatar Mar 06 '22 19:03 okikio

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 avatar Mar 12 '22 04:03 okikio

Would you be ok with something like this?

  • https://jsconsole.com/
  • https://github.com/remy/jsconsole/

okikio avatar May 21 '22 19:05 okikio

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

artalar avatar May 22 '22 19:05 artalar

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 avatar May 22 '22 19:05 okikio

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

okikio avatar May 22 '22 19:05 okikio

it worked on mobile

Very good point

artalar avatar May 23 '22 03:05 artalar

This might happen in a couple weeks 😉

okikio avatar Mar 06 '23 06:03 okikio

@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

okikio avatar Mar 11 '23 07:03 okikio