Skip to content
This repository has been archived by the owner on Jan 24, 2020. It is now read-only.

Use createProxy to allow use of polyfill for ie11 #5

Merged
merged 3 commits into from
Nov 7, 2019

Conversation

oterral
Copy link
Contributor

@oterral oterral commented Nov 6, 2019

Fix #3

With this pr we can use https://github.com/GoogleChrome/proxy-polyfill .

Then you can use it like this:

// import polyfills for ie 11
import 'react-app-polyfill/ie11';
import 'react-app-polyfill/stable';
import 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only';
import 'proxy-polyfill';

import { ReactWebComponent } from 'create-react-web-component';
import {
  componentAttributes,
  componentProperties,
} from './componentProperties';
import App from './App';

ReactWebComponent.setAttributes(App.attributes);
ReactWebComponent.setProperties(App.defaultProps);
ReactWebComponent.render(App, 'trafimage-maps');

Copy link
Owner

@SimonHoiberg SimonHoiberg left a comment

Choose a reason for hiding this comment

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

This is awesome man, greatly appreciated! 😄

Would you mind removing the comment above const root = ..., and then bump the patch version one?
You can just run the script yarn update-version 2.0.16, that will update the version and its references in the templates 😊

Cheers!

@oterral
Copy link
Contributor Author

oterral commented Nov 7, 2019

Modifications done.
And thx for this project it has really helped us.

@SimonHoiberg SimonHoiberg merged commit f012588 into SimonHoiberg:master Nov 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IE 11 support
2 participants