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

Adding babel-runtime and transform plugins #6

Merged
merged 1 commit into from
Oct 13, 2017
Merged

Conversation

kafkahw
Copy link
Contributor

@kafkahw kafkahw commented Oct 13, 2017

Summary

Added babel-runtime and a couple transform plugins that remove the need of extra global polyfills.

Additional Details

This won't pollute global so the consumer of xfc can still choose to include a global polyfill if they want. However, extra polyfills are not needed to consume this library.

Thanks for contributing to xfc.

@@ -13,6 +13,7 @@
}
html[hidden] { display: none; }
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.23.0/polyfill.min.js"></script>
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are you adding the poly fill here if it isn’t needed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

actually polyfill is needed on this page, however, it's not used for XFC but for an explicit Promise call on this page. We call Promise.resolve in secret function. See here

@@ -10,6 +10,7 @@
html[hidden] { display: none; }
</style>
<script src="http://localhost:8080/xfc.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.23.0/polyfill.min.js"></script>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

same here, the polyfill here is not used for xfc, but for a Promise call on this page.

@mhemesath
Copy link
Contributor

Did you test this in IE10 for @poloka

@kafkahw
Copy link
Contributor Author

kafkahw commented Oct 13, 2017

yes, just ran through all existing examples in IE10 and everything looks fine.

@kafkahw kafkahw merged commit 86ab93d into master Oct 13, 2017
@kafkahw kafkahw deleted the polyfill-fix branch November 1, 2017 21:37
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.

2 participants