commit | 0026e731ee5ad9c565ae9bda4c91a7f024db0c60 | [log] [tgz] |
---|---|---|
author | Michael Bullington <mikebullingtn@gmail.com> | Wed Apr 17 13:00:26 2019 -0400 |
committer | Michael Bullington <mikebullingtn@gmail.com> | Wed Apr 17 13:00:26 2019 -0400 |
tree | d48d7576e51cbcb8ac1ed27da4beca9c4ff9ae07 | |
parent | dac60ea246d88b37b0eda1bf3ae68a0513189fdb [diff] |
Run tool/minify.dart.
A simple package for a better dart2js preamble for running on node.js. This package exists for ease of use if incorporating into your build system.
This preamble is suggested for use over d8.js, and provides many improvements and bug fixes, as it uses node.js's timer functions and event loop over the custom one implemented in d8.js.
The JavaScript file can be found at lib/preamble.js.
You can also get the preamble via Dart, like in the following example.
import "package:node_preamble/preamble.dart" as preamble; main() { print(preamble.getPreamble()); }
Credit goes to the Dart team for creating Dart, dart2js, and the original preamble which this is derived from.