현재,
Node.js 가 Apple silicon을 지원하는 최소 버전이 15.5 이라, 그 이상을 설치하고 사용하면 놀라운 성능을 누릴 수 있습니다.
Running Node.js natively on Apple SiliconComponent-driven design & development for the
기존의 좋은 포스팅을 기반으로, 참여했었던 프로젝트에서 적용한 부분을 기록합니다.
사전 설정
Github Personal access token 발급
1. 발급 URL(private packages가 속한 조직에 접근 권한이 있는 계정으로 접속): https://github.com/settings/tokens
이제 더이상 Create-react-app 에서 웹워커 지원 안해요 라는 말은 없는 것으로.
1. Install CRA
$ npx create-react-app hello-worker-with-cra
...
$ cd hello-worker-with-cra
2. Install webpack worker plugin with react-app-rewired
$ yarn add --dev react-app-rewired worker-plugin
...
{
...
"scripts&