Closed RangerMauve closed 6 years ago
Did some sooky magic by hacking the rempl module to run things in the webrun context.
rempl
Also added something for intercepting calls to import() in order to rewrite it to import.meta._import which will load the module.
import()
import.meta._import
As well we now have a _import global which will import relative to the process.cwd(). This is there for supporting import() in the REPL.
_import
process.cwd()
You can run the repl by runnin webrun without a URL to load, e.g. webrun.
webrun
Did some sooky magic by hacking the
rempl
module to run things in the webrun context.Also added something for intercepting calls to
import()
in order to rewrite it toimport.meta._import
which will load the module.As well we now have a
_import
global which will import relative to theprocess.cwd()
. This is there for supportingimport()
in the REPL.You can run the repl by runnin webrun without a URL to load, e.g.
webrun
.