Skip to content

Commit eb5ba0c

Browse files
docs(BrowserSupport): explain IE 11 setup in more detail
1 parent b7053c5 commit eb5ba0c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,18 +130,20 @@ For Browser Support and the configuration of the UI5 Web Components, please take
130130
[UI5 Web Components Readme](https://github.com/SAP/ui5-webcomponents#ui5-web-components).
131131

132132
### Browser Support
133+
134+
#### Internet Explorer 11
133135
`@ui5/webcomponents-react` is supporting all modern major browsers. There is no support for Internet Explorer 11 built in.<br />
134136
If you want your application to run in IE11, you will have to polyfill some features by importing these polyfills as **first** imports in your `src/index.js`:
135137
```js
136138
import 'react-app-polyfill/ie11';
137-
import '@ui5/webcomponents-base/dist/features/browsersupport/IE11';
139+
import '@ui5/webcomponents-base/dist/features/browsersupport/IE11WithWebComponentsPolyfill';
138140
import '@ui5/webcomponents-react-base/polyfill/IE11';
139-
import '@webcomponents/webcomponentsjs/webcomponents-bundle';
140141
```
141-
You can install `react-app-polyfill` and `@webcomponents/webcomponentsjs` with the following command:
142+
You can install `react-app-polyfill` with the following command:
142143
```bash
143-
npm install react-app-polyfill @webcomponents/webcomponentsjs --save
144+
npm install react-app-polyfill --save
144145
```
146+
In case you are using [`browserslist`](https://github.com/browserslist/browserslist) (which is part of `create-react-app`), please also make sure you have added `IE 11` to your browserslist configuration (can be found in `package.json` if you are using CRA).
145147

146148
<!-- *********************************************************************** -->
147149
<a name="issues"></a>

0 commit comments

Comments
 (0)