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
Dependency on browser/dart.js is obsolete #23005
Comments
cc @dgrove. |
Dart2js should not need to deal with HTML files. Removed Area-Dart2JS label. |
This comment was originally written by di...@gmail.com With Dart 1.9.1 if you replace <script type="application/dart" src="main.dart"></script> with direct include <script src="main.dart.js"></script> js-interop stops working. |
This comment was originally written by @zoechi I tried it with a simple example and dart-js-interop still worked. |
This comment was originally written by di...@gmail.com Agree, my mistake. |
This issue was originally filed by @marcojakob
Now that we know the Dart VM will not get into the browser, isn't the dependency on packages/browser/dart.js obsolete?
Since there will not be any browsers capable of dealing with a .dart file, couldn't we replace the following:
<script type="application/dart" src="main.dart"></script>
<script data-pub-inline src="packages/browser/dart.js"></script>
with just
<script src="main.dart.js"></script>
Yes, I know there is still Dartium. But it would make much more sense to let Dartium rewrite the main.dart.js into main.dart for development instead of letting every browser do the opposite in production.
Or ist this something the dart2js should be responsible for? While translating main.dart to main.dart.js, the dart2js compiler could also replace the script tag in the HTML file.
What version of the product are you using?
Dart v1.9.1
The text was updated successfully, but these errors were encountered: