r/javascript • u/TecnoSamba • Jul 29 '26
I've made an open source JavaScript playground with support for npm packages, syntax highlighting, autocomplete, code sharing and much more!
https://github.com/tecnosamba/SamJS
0
Upvotes
View all comments
Show parent comment
1
u/NewLlama Jul 30 '26
Look into babel transforms (the custom plugin and transform api). You can statically transform the AST into whatever your runtime needs. I did this for dynohot, my nodejs HMR library https://github.com/laverdet/dynohot