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: add polyfills for ie11 issues #1099

Merged
merged 4 commits into from
Jun 19, 2020
Merged

fix: add polyfills for ie11 issues #1099

merged 4 commits into from
Jun 19, 2020

Conversation

jbadan
Copy link
Contributor

@jbadan jbadan commented Jun 19, 2020

Description

Calendar/DatePicker/InputGroup were not working in ie11 due to string.includes/array.includes.

Added polyfilling (no global pollution) to build pipeline to avoid this issue in the future.

Screen Shot 2020-06-19 at 8 28 11 AM

fixes #issueid

@jbadan jbadan requested a review from a team June 19, 2020 16:04
];

const productionPlugins = [
'babel-plugin-transform-react-constant-elements',
'@babel/plugin-transform-react-constant-elements',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was using the babel 6 plugin - upgraded to 7.

@@ -9,13 +9,11 @@ const defaultPresets = [

const defaultPlugins = [
['@babel/plugin-proposal-class-properties', { loose: true }],
['@babel/plugin-proposal-object-rest-spread', { loose: true }],
'@babel/plugin-transform-runtime',
'@babel/plugin-transform-object-assign'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

No longer needs object assign or object rest spread due to core-js

@netlify
Copy link

netlify bot commented Jun 19, 2020

Deploy preview for fundamental-react ready!

Built with commit 6b22cae

https://deploy-preview-1099--fundamental-react.netlify.app

@@ -120,8 +119,7 @@
"react-dom": "^16.8.0",
"react-router-dom": "^5.2.0",
"react-syntax-highlighter": "^12.2.1",
"react-test-renderer": "^16.13.1",
"regenerator-runtime": "^0.13.5",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

react-test-renderer should be in sync with react version. regenerator runtime was leftover from old docs site.

Copy link
Contributor

@greg-a-smith greg-a-smith left a comment

Choose a reason for hiding this comment

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

Looks good. 🚢

@jbadan jbadan merged commit 7c5bae2 into master Jun 19, 2020
@jbadan jbadan deleted the polyfills branch June 19, 2020 20:19
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

2 participants