- Explicitly support Dart 2 stable releases.
- Add Node detector for Browserify/Webpack-type environments. (thanks to @lexaknyazev for reporting!)
- Add examples for pub (thanks @bcko!)
- Keep
Uri.base
up to date when the current working directory changes. - Add .dart_tool to gitignore.
- Make sure to replace all backslashes for cwd on Windows, not just the first.
- Add __dirname and __filename to exposed globals. Adds ability of exposing more
globals in the preamble by calling
getPreamble(additionalGlobals: ["__dirname", ...])
.
- Add minified versions of the preamble accessible as
lib/preamble.min.js
and by callinggetPreamble(minified: true)
.
- Prevent encapsulation,
global.self = global
(old) vs.var self = Object.create(global)
(new).
-
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.