You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today our javascript compilers (dart2js e dartdevc) doest not support the creating of standalone javascript libraries.
As the Flutter community grows every day, would be amazing if Dart could provide a way to share code created in Dart with Javascript code environment (web, node).
dart2js requires a 'main' entry point, thus not working for libraries.
dartdevc is not intended for production deployment and generate a huge amount of javascript code, intended for debugging.
Maybe a third compiler? Or maybe just a paramenter passed to dart2js would be enough.
In this issue I explain a little more about my failed attempt on achieving this on dart language: #46376
The text was updated successfully, but these errors were encountered:
shinayser
changed the title
Support the creating of Javascript libraries from Dart code
Support the creation of Javascript libraries from Dart code
Jun 15, 2021
This is a feature request
Today our javascript compilers (dart2js e dartdevc) doest not support the creating of standalone javascript libraries.
As the Flutter community grows every day, would be amazing if Dart could provide a way to share code created in Dart with Javascript code environment (web, node).
dart2js
requires a 'main' entry point, thus not working for libraries.dartdevc
is not intended for production deployment and generate a huge amount of javascript code, intended for debugging.Maybe a third compiler? Or maybe just a paramenter passed to
dart2js
would be enough.In this issue I explain a little more about my failed attempt on achieving this on dart language: #46376
The text was updated successfully, but these errors were encountered: