This is a POC of writing modules in dart
, then import and to be used in JavaScript
.
The lib/dart_sdk.js
and lib/dart_sdk.js.map
files are extracted from dart_sdk
.
Install dart-sdk
and node
on your machine.
- Use
yarn build-dart
to builddart
module toJavaScript
- Use
yarn build
to buildJavaScript
code - Serve the files in
/dist
folder by any http server (e.g. http-server) - Open the web in browser and watch the console output.