Discussion:
[dart-misc] Shouldn't `pub build` apply the dart_to_js_script_rewriter by default?
Kasper Peulen
2015-10-07 22:00:41 UTC
Permalink
I understand the historical, but as it is now, it seems a little bit off
that the standard output of `pub build` causes a 404 and runs a
"browser/dart.js" file to determine if the browser has "native" dart
support, while no production browser has native dart support or will ever
get native dart support.

So instead of letting every new user have to find out that he will
need/want dart_to_js_script_rewriter in every web project, I think it would
be better if `pub build` would do this rewriting of
`type="application/dart"` script tags by default.
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Günter Zöchbauer
2015-10-08 05:37:20 UTC
Permalink
https://github.com/dart-lang/pub/issues/685
I understand the historical reasons, but as it is now, it seems a little
bit off that the standard output of `pub build` causes a 404 and runs a
"browser/dart.js" file to determine if the browser has "native" dart
support, while no production browser has native dart support or will ever
get native dart support.
So instead of letting every new user have to find out that he will
need/want dart_to_js_script_rewriter in every web project, I think it would
be better if `pub build` would do this rewriting of
`type="application/dart"` script tags by default.
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Jan Mostert
2015-10-08 08:27:10 UTC
Permalink
+1

Is there an ETA on this?
I'm currently using a post `pub build` grep to search and replace, so not a
big deal, but would be nice to have that automatically taken care of by pub.

--
Jan Vladimir Mostert
janvladimirmostert.com
Post by Günter Zöchbauer
https://github.com/dart-lang/pub/issues/685
I understand the historical reasons, but as it is now, it seems a little
bit off that the standard output of `pub build` causes a 404 and runs a
"browser/dart.js" file to determine if the browser has "native" dart
support, while no production browser has native dart support or will ever
get native dart support.
So instead of letting every new user have to find out that he will
need/want dart_to_js_script_rewriter in every web project, I think it would
be better if `pub build` would do this rewriting of
`type="application/dart"` script tags by default.
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Seth Ladd
2015-10-08 18:14:46 UTC
Permalink
On Thursday, October 8, 2015 at 1:27:56 AM UTC-7, Jan Vladimir Mostert
Post by Jan Mostert
+1
Is there an ETA on this?
I'm currently using a post `pub build` grep to search and replace, so not
a big deal, but would be nice to have that automatically taken care of by
pub.
You might want to check
out https://pub.dartlang.org/packages/dart_to_js_script_rewriter which is a
transformer that does it for you automatically :)
Post by Jan Mostert
--
Jan Vladimir Mostert
janvladimirmostert.com
Post by Günter Zöchbauer
https://github.com/dart-lang/pub/issues/685
I understand the historical reasons, but as it is now, it seems a little
bit off that the standard output of `pub build` causes a 404 and runs a
"browser/dart.js" file to determine if the browser has "native" dart
support, while no production browser has native dart support or will ever
get native dart support.
Thanks for the feedback!

Right now, we're focusing on low-level infrastructure to improve our
developer experience. Things like polymer.dart 1.0, new JS interop, DDC,
etc. Because there are transformers
like https://pub.dartlang.org/packages/dart_to_js_script_rewriter we felt
that there wasn't a huge pressing need to wire that into pub build.

The 404 is annoying, but not fatal. In the meantime, please use the
transformer, and when our low-level tech is more stable, we can take a
fresh look at the higher-level tools. I expect we'll work with the
community to come up with smoother flows here.

Thanks again!
Post by Jan Mostert
Post by Günter Zöchbauer
So instead of letting every new user have to find out that he will
need/want dart_to_js_script_rewriter in every web project, I think it would
be better if `pub build` would do this rewriting of
`type="application/dart"` script tags by default.
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Jan Mostert
2015-10-08 19:37:30 UTC
Permalink
Sweet mother of Batman, that's a very useful transformer :-D
Thanks Seth!!!
Post by Seth Ladd
On Thursday, October 8, 2015 at 1:27:56 AM UTC-7, Jan Vladimir Mostert
Post by Jan Mostert
+1
Is there an ETA on this?
I'm currently using a post `pub build` grep to search and replace, so not
a big deal, but would be nice to have that automatically taken care of by
pub.
You might want to check out
https://pub.dartlang.org/packages/dart_to_js_script_rewriter which is a
transformer that does it for you automatically :)
Post by Jan Mostert
--
Jan Vladimir Mostert
janvladimirmostert.com
Post by Günter Zöchbauer
https://github.com/dart-lang/pub/issues/685
I understand the historical reasons, but as it is now, it seems a
little bit off that the standard output of `pub build` causes a 404 and
runs a "browser/dart.js" file to determine if the browser has "native" dart
support, while no production browser has native dart support or will ever
get native dart support.
Thanks for the feedback!
Right now, we're focusing on low-level infrastructure to improve our
developer experience. Things like polymer.dart 1.0, new JS interop, DDC,
etc. Because there are transformers like
https://pub.dartlang.org/packages/dart_to_js_script_rewriter we felt that
there wasn't a huge pressing need to wire that into pub build.
The 404 is annoying, but not fatal. In the meantime, please use the
transformer, and when our low-level tech is more stable, we can take a
fresh look at the higher-level tools. I expect we'll work with the
community to come up with smoother flows here.
Thanks again!
Post by Jan Mostert
Post by Günter Zöchbauer
So instead of letting every new user have to find out that he will
need/want dart_to_js_script_rewriter in every web project, I think it would
be better if `pub build` would do this rewriting of
`type="application/dart"` script tags by default.
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Loading...