Uri.base
up to date when the current working directory changes.getPreamble(additionalGlobals: ["__dirname", ...])
.lib/preamble.min.js
and by calling getPreamble(minified: true)
.global.self = global
(old) vs. var self = Object.create(global)
(new).Set global.location
so that Uri.base()
works properly on Windows in most cases.
Define global.exports
so that it's visible to the compiled JS.