mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-06 05:10:20 +03:00
remove IE polyfills as IE is no longer supported
This commit is contained in:
parent
1f0757a798
commit
aa9a5f02bd
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user