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

Fix regression where polyfills where build into into extensions. #1681

Merged
merged 1 commit into from
Jan 29, 2016

Conversation

cramforce
Copy link
Member

No description provided.

@@ -14,6 +14,7 @@
* limitations under the License.
*/

import './polyfills';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove the import in timers.js?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We really need a better solution. Basically you need to put it everywhere that uses promises and has an immediate side effect.

@cramforce
Copy link
Member Author

PTAL

// Many files include the polyfills, but we only want to deliver them
// once. Since all files automatically wait for the main binary to load
// this works fine.
if (options.includePolyfills) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the conditional is backwards?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It isn't.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are two files that resolve to the module name. One is empty. If we should include polyfills, it removes the empty from the set, otherwise it removes the actual file.

@erwinmombay
Copy link
Member

@cramforce tested, LGTM

cramforce added a commit that referenced this pull request Jan 29, 2016
Fix regression where polyfills where build into into extensions.
@cramforce cramforce merged commit 9054298 into ampproject:master Jan 29, 2016
@cramforce cramforce deleted the polyfills-extensions branch January 29, 2016 21:40
Gregable pushed a commit that referenced this pull request Jul 18, 2018
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

Successfully merging this pull request may close these issues.

None yet

3 participants