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(Docs): Add babel-polyfill so that the Docs work in IE11 #2884

Merged
merged 4 commits into from
Jun 21, 2018

Conversation

mihai-dinculescu
Copy link
Member

No description provided.

@codecov-io
Copy link

codecov-io commented Jun 6, 2018

Codecov Report

Merging #2884 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2884   +/-   ##
=======================================
  Coverage   99.67%   99.67%           
=======================================
  Files         161      161           
  Lines        2733     2733           
=======================================
  Hits         2724     2724           
  Misses          9        9

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6d6f6eb...5f8c2f2. Read the comment docs.

@mihai-dinculescu mihai-dinculescu changed the title fix(Docs): Add babel-polyfill to that it works in IE11 fix(Docs): Add babel-polyfill so that the Docs work in IE11 Jun 6, 2018
@fracmak
Copy link
Member

fracmak commented Jun 6, 2018

Can you throw in

useBuiltIns: 'entry'

Into the .babelrc file for the babel-preset-env plugin?

package.json Outdated
@@ -90,6 +90,7 @@
"babel-plugin-lodash": "^3.2.11",
"babel-plugin-transform-react-handled-props": "^1.0.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.13",
"babel-polyfill": "^6.26.0",
Copy link
Member

Choose a reason for hiding this comment

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

We use Babel 7

Copy link
Member Author

@mihai-dinculescu mihai-dinculescu left a comment

Choose a reason for hiding this comment

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

@fracmak, like this?

@fracmak
Copy link
Member

fracmak commented Jun 6, 2018

yup

@@ -26,6 +26,7 @@ const browsers = [

const envOptions = {
targets: { browsers },
useBuiltIns: 'entry',
Copy link
Member

Choose a reason for hiding this comment

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

This change will affect also dist build that will be published to NPM. We also using transform runtime.

I am not sure that proposed changes are safe.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not confident that this setting helps the docs. Albeit crude, my tests showed no difference in network traffic. I'll take it out for now.

@levithomason
Copy link
Member

This is an easy merge, however, what feature are we using that is not IE 11 compliant? This is a target browser.

@mihai-dinculescu
Copy link
Member Author

Promise

@levithomason levithomason merged commit 55e9388 into master Jun 21, 2018
@levithomason levithomason deleted the fix/docs_in_ie11 branch June 21, 2018 04:25
@levithomason
Copy link
Member

Thanks

@levithomason
Copy link
Member

Released in semantic-ui-react@0.81.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants