Why does pub not include the .dart files in release mode?

66 views
Skip to first unread message

Jop V.

unread,
Sep 14, 2016, 11:46:20 AM9/14/16
to Dart Misc
https://webdev.dartlang.org/tools/pub/pub-build

Also, in release mode, pub does not include any source .dart files in the resulting build output since they have been compiled to JavaScript. In any other mode, the raw Dart files are included.


I know Google dropped plans to include Dart support in Chrome a long time ago, but in the future a browser might come along that does have Dart support. And then it becomes a performance disadvantages that the .dart files have been thrown away. So why not just include the .dart files? Why would it hurt?

Bob Nystrom

unread,
Sep 14, 2016, 2:00:32 PM9/14/16
to General Dart Discussion
On Wed, Sep 14, 2016 at 3:52 AM, Jop V. <j...@jopv.net> wrote:
in the future a browser might come along that does have Dart support.

If that happens, we could change pub to include the .dart files at that point.

So why not just include the .dart files? Why would it hurt?

They take up a lot of space and may leak information developers don't want in their deployed application.

– bob

tatumizer-v0.2

unread,
Sep 14, 2016, 2:43:06 PM9/14/16
to Dart Misc
> but in the future a browser might come along that does have Dart support

Finally, see another sarcastic poster on this board! Welcome brother!


Don Olmstead

unread,
Sep 14, 2016, 5:51:27 PM9/14/16
to mi...@dartlang.org
Yea its totally what we need.

On Wed, Sep 14, 2016 at 11:43 AM, tatumizer-v0.2 <tatu...@gmail.com> wrote:
> but in the future a browser might come along that does have Dart support

Finally, see another sarcastic poster on this board! Welcome brother!


--
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
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.

Filipe Morgado

unread,
Sep 14, 2016, 6:09:04 PM9/14/16
to mi...@dartlang.org
I don't think it's that sarcastic!

If Flutter/Fuchsia are successful, I can easily imagine Chrome running all that app ecosystem (provided there's a Flutter implementation for the web).
Chrome and Fuchsia have apparently a lot of common concepts in their core platforms.

"Runs better in Chrome" could actually be rebranded, this time backed by an actual app market share (unlike NaCL) and still have a JS impl for other browsers.

tatumizer-v0.2

unread,
Sep 14, 2016, 8:35:50 PM9/14/16
to Dart Misc
> I don't think it's that sarcastic!
Then sorry. Taking sarcasm back.
There's a very distinct possibility that dart-supporting browser will come along, and having found no .dart files, will go away and never come back.

To prevent this, please start shipping .dart files RIGHT NOW!

Is that what you mean?




Filipe Morgado

unread,
Sep 15, 2016, 6:38:18 AM9/15/16
to Dart Misc
I think you know what I mean. You're just abusing sarcasm again.
Reply all
Reply to author
Forward
0 new messages