remove IE polyfills as IE is no longer supported

This commit is contained in:
Heather Cloward 2021-11-11 19:52:14 -05:00 committed by GitHub
parent 1f0757a798
commit aa9a5f02bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,25 +28,6 @@ npm i react react-dom mobx styled-components core-js
import { RedocStandalone } from 'redoc';
```
### IE polyfills
If you use Redoc as a React component and you want your OpenAPI definition to render with
IE browsers, include the following polyfills in your project:
```
import 'core-js/es6/promise';
import 'core-js/fn/array/find';
import 'core-js/fn/object/assign';
import 'core-js/fn/string/ends-with';
import 'core-js/fn/string/starts-with';
import 'core-js/es6/map';
import 'core-js/es6/symbol';
import 'unfetch/polyfill/index'; // or any other fetch polyfill
import 'url-polyfill';
```
## Step 2 - Use the component
You can either link to your OpenAPI definition with a URL, using the following format: