# 22-04-04
# 브라우저 호환성
사용자의 다양한 이용 환경에 대응하자 🛠 (IE, 구버전 브라우저...)
# 트랜스파일링(Transpiling)
# babel
트랜스파일러(transpiler), 코드를 구 표준 준수 코드로 변경
바벨은 ES6+, 타입스크립트, 커피스크립트, JSX .... 다양하게 작성된 코드를 다양한 브라우저에서 동작하도록 호환성을 지켜준다.
npm install @babel/core @babel/cli @babel/preset-env --save-dev
babel.config.json
으로 babel 실행 설정을 한다.
{
"presets": [],
"plugins": []
}
- presets : @babel/preset-env (opens new window)를 사용할 수 있다.
- plugins : TC39 프로세스 (opens new window) 0~3단계의 기능과 같이 preset에 포함되지 않는 기능을 별도 플러그인으로 적용할 수 있다.
# webpack
webpack을 이용하여 entry point로부터 의존되는 모듈을 자동으로 babel로 트랜스파일링 할 수 있다
npm install webpack webpack-cli
npx webpack
webpack.config.js
으로 설정 (https://webpack.js.org/configuration/)
Babel Loader
(opens new window)를 이용하여 webpack과 babel을 연동할 수 있다.
# webpack - Using source maps
webpack을 사용하면서 디버깅에 사용하기 위해 source map
을 사용해보자
# Commit message convention
협업을 위한 git 커밋컨벤션 설정하기 (opens new window)
# PR templates
# Issue templates
https://github.com/stevemao/github-issue-templates (opens new window)
Github Issue Templates으로 Issue 쉽고 체계적이게 작성해보기 (opens new window)
[Git] 깃헙에서 이슈템플릿 설정하기 (opens new window)
https://github.com/google/flexbox-layout/ 이슈 작성화면 (opens new window)
Reference