You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to do something like this for a live-reload server:
fromtranscryptimportcompilationApidefrequestHandler(req):
# Suppose browser has made request to download localhost:3000/code/myproject.module.jsmoduleName=req.path.replace("/code/", "").replace(".js", "") # I know this logic is wrong, just simple for examplereturnResponse.text(compilationApi.compile(moduleName)).contentType("application/javascript")
If the compiled .js for myproject.module contains any import statements, they'll trigger other HTTP requests from the browser which will trigger other calls to requestHandler to compile those modules.
Activity