node_preamble 1.3.0 node_preamble: ^1.3.0 copied to clipboard
Better node.js preamble for dart2js, use it in your build system.
1.3.0 #
- Add minified versions of the preamble accessible as
lib/preamble.min.js
and by callinggetPreamble(minified: true)
.
1.2.0 #
- Prevent encapsulation,
global.self = global
(old) vs.var self = Object.create(global)
(new).
1.1.0 #
-
Set
global.location
so thatUri.base()
works properly on Windows in most cases. -
Define
global.exports
so that it's visible to the compiled JS.