React IE 적용

페리·2022년 1월 2일
1

React 작업을 하다가, IE에 절대 적용이 안되는 것을 보고 여러 블로그 글을 보고 정리를 해보았다.


  • react-scripts 버전 3.2.0으로 다운그레이드

npm i react-scripts@3.2.0

  • react-app-polyfill 모듈 설치

npm i react-app-polyfill

  • babel/polyfill 패키지 설치
npm install core-js regenerator-runtime
yarn add core-js regenerator-runtime

코드에 적용

import 'core-js/stable';
import 'regenerator-runtime/runtime';
import 'react-app-polyfill/ie9';
import 'react-app-polyfill/stable';

reference site

http://devhyun.com/blog/post/16
https://msko.tistory.com/63

0개의 댓글