Skip to content

pvdz/recompiler

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 

Real-time recompilation of running JavaScript

See build/editor-recompile.html to see how it works. You can edit on the left and it will update on the right. As long as you don't introduce new functions, it will probably work :)

Note that there are limitations. Main limitation is that you can't really introduce new functions unless it preceeds all other functions in the source code which means that it will never be re-evaluated. But if you do hand replacements through the console your could get away with it :) Anyways, new functions; no.

Other than that, I think it's very generic. Just check out the editor-recompile.html and play with it for yourself.

To see a break-down of what happens see src/demo.js (you can play with it through build/demo.html + the browser console, try $data[0].body = 'console.log("I've seen the "+world);';).

About

Recompile JavaScript without restarting your app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published