node_preamble 1.4.2 copy "node_preamble: ^1.4.2" to clipboard
node_preamble: ^1.4.2 copied to clipboard

outdatedDart 1 only

Better node.js preamble for dart2js, use it in your build system.

1.4.2 #

  • Keep Uri.base up to date when the current working directory changes.
  • Add .dart_tool to gitignore.

1.4.1 #

  • Make sure to replace all backslashes for cwd on Windows, not just the first.

1.4.0 #

  • Add __dirname and __filename to exposed globals. Adds ability of exposing more globals in the preamble by calling getPreamble(additionalGlobals: ["__dirname", ...]).

1.3.0 #

  • Add minified versions of the preamble accessible as lib/preamble.min.js and by calling getPreamble(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 that Uri.base() works properly on Windows in most cases.

  • Define global.exports so that it's visible to the compiled JS.

9
likes
0
pub points
99%
popularity

Publisher

unverified uploader

Better node.js preamble for dart2js, use it in your build system.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on node_preamble