기본적으로 생성 된 프로젝트는 모든 최신 브라우저를 지원한다. Internet Explorer 9, 10 및 11에 대한 지원은 polyfill 이 필요하다.
Create React App에는 기본 적으로 이 도구가 포함되어 있지 않지만 Storybook for React 또는 React Styleguidist를 프로젝트에 쉽게 추가 할 수 있다.
source-map-explorer는 source map을 이용하여 javascript 번들을 분석한다. 이를 이용해 코드가 커지는 부분을 이해하는데 도움이 된다.
source-map-explorer를 추가하려면 다음 단계를 수행한다.
npm install --save source-map-explorer
또는
yarn add source-map-explorer
그런 다음 package.json
에 다음 행을 추가한다.
"scripts": {
+ "analyze": "source-map-explorer build/static/js/main.*",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
그런 다음 build 후 analyze를 실행한다.
npm run build
npm run analyze
참고 : 이 기능은 이상에서 사용할 수 있습니다 [email protected].