-
Notifications
You must be signed in to change notification settings - Fork 24
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
Conversation
@@ -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> |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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.
Did you test this in IE10 for @poloka |
yes, just ran through all existing examples in IE10 and everything looks fine. |
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.