commit | ec11f5acd92e4cf6b131e43aaa1c8645c31061c7 | [log] [tgz] |
---|---|---|
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | Wed Feb 22 00:18:50 2023 +0000 |
committer | GitHub <noreply@github.com> | Wed Feb 22 00:18:50 2023 +0000 |
tree | 79237116dbdeabdf004469aa4d434909150ac6ea | |
parent | ac443f53d1b990ce5ea00f289c506503ed23c259 [diff] |
Bump terser from 4.2.1 to 4.8.1 (#31) Bumps [terser](https://github.com/terser/terser) from 4.2.1 to 4.8.1. - [Release notes](https://github.com/terser/terser/releases) - [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md) - [Commits](https://github.com/terser/terser/commits) --- updated-dependencies: - dependency-name: terser dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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.
The only file that we directly modify is preamble.js
. After that, to reflect your changes in both preamble.dart
and preamble.min.js
, run npm install && npm run minify
node_preamble
tries to support the following platforms. Before a pub
release, the following environments should be manually tested with a sample dart2js
output:
node
create-react-app
)