Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support the creation of Javascript libraries from Dart code #46378

Closed
shinayser opened this issue Jun 15, 2021 · 2 comments
Closed

Support the creation of Javascript libraries from Dart code #46378

shinayser opened this issue Jun 15, 2021 · 2 comments

Comments

@shinayser
Copy link

shinayser commented 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

@shinayser 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
@Sunbreak
Copy link

Related: #35084

@mraleph
Copy link
Member

mraleph commented Jun 16, 2021

Duplicate of #37617

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants