-
Notifications
You must be signed in to change notification settings - Fork 1.7k
polymer: dart2js transformers should not run in "pub serve" with Dartium #19168
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
Comments
Added Pkg-PolymerBuild label. |
Added Area-Pkg label. |
This is exactly what Bob and I were discussing this morning. It's tricky because pub-serve is used both for serving for dartium and for serving for Chrome/FF so people can also iterate there. For the former we want no transformations to be run, for the latter we want all transformations to run. We also want that the entrypoint file that the user loads (index.html) to be the same in both cases. We can work on making our transformers lazy, but we need from pub a mechanism so we can choose not to run transformers given a particular user agent. cc @nex3. |
Marked this as being blocked by #19169. |
ah right. seems Dartium vs non-Dartium is the crucial distinction. Changed the title to: "polymer: dart2js transformers should not run in "pub serve" with Dartium". |
After discussing this more throughout the day. Seems that the best solution we have so far is to have 2 entrypoints for polymer apps when running in pub-serve. Say you have an app with 'web/index.html' as the entrypoint. What we'll do is the following:
I'm marking now this blocked on issue #18489, since that's how we will be able to implement the lazy transformer. In particular, we need to be able to rewrite smoke's mirror import lazily, and since that modifies code in another package, it would need to be handled as a global transformation. We can possibly also run the observe transformers lazily, so we could avoid all work in Dartium. Marked this as being blocked by #18489. |
Marked this as blocking #19174. |
Added this to the 1.6 milestone. |
Added Priotiy-Medium label. |
Removed Priority-Unassigned, Priotiy-Medium labels. |
Removed Priority-Medium label. |
Removed this from the 1.6 milestone. |
Removed Polymer-P-1 label. |
Added PolymerMilestone-Next label. |
Removed Polymer-Milestone-Next label. |
Added this to the 1.6 milestone. |
Removed this from the 1.6 milestone. |
Assigning owner as Priority is High. If this is done in error, please reassign or bump priority down. Thanks! Set owner to @sigmundch. |
Unmarked this as blocking #19174. |
This issue has been moved to dart-archive/polymer-dart#400. |
I think this is the issue Alan was seeing...
Polymer is supposed to work out-of-the-box in Dartium w/o transforms. All of our transforms are deploy time optimizations or just part of making HTML+dart2js work:
The text was updated successfully, but these errors were encountered: