7. 아직 표준에 포함되지 않은 문법은 proposal 이라고 표기합니다.
‐ babel‐plugin‐transform‐class‐properties
‐ babel‐plugin‐transform‐object‐rest‐spread
+ @babel/plugin‐proposal‐class‐properties
+ @babel/plugin‐proposal‐object‐rest‐spread
8. 표준 연도가 패키지 이름에 들어가지 않습니다.
‐ babel‐plugin‐transform‐es2015‐arrow‐functions
+ @babel/plugin‐transform‐arrow‐functions
9. 연 표준 프리셋﴾babel‐preset‐es20xx﴿이 Deprecated 됩니다.
TL;DR: use babel‐preset‐env.
babel‐preset‐es2015
babel‐preset‐es2016
babel‐preset‐es2017
babel‐preset‐latest
stage‐x 프리셋은 계속 유지보수된다고 합니다.
그래도 이왕이면 env 프리셋을 사용하세요
10. Node 0.10, 0.12, 5 버전 지원이 중단됩니다.
세 버전은 모두 공식적으로 지원이 종료된 Node 버전입니다.
Release Status End‐of‐life
v0.10.x End‐of‐Life 2016‐10‐31
v0.12.x End‐of‐Life 2016‐12‐31
5.x End‐of‐Life 2016‐06‐30
11. 내부 종속성에서 babel‐runtime 이 제거됩니다.
Babel 6 에서는 모든 플러그인들이 폴리필을 위해 내부적으로 babel‐runtime 을
포함하고 있습니다.
이제 구 버전 Node 지원을 중단했기 때문에 더 이상 필요하지 않습니다!
13. .babelrc.js
이제 JSON 파일 대신 자바스크립트 모듈을 설정으로 사용할 수 있습니다.
예시: .babelrc.js
var env = process.env.BABEL_ENV || process.env.NODE_ENV;
var plugins = [];
if (env === 'production') {
plugins.push.apply(plugins, ["a‐super‐cool‐babel‐plugin"]);
}
module.exports = { plugins };
14. TypeScript !!
TypeScript 프리셋이 제공됩니다.
yarn add ‐‐dev @babel/preset‐typescript
이제 TypeScript를 더 쉽게 사용할 수 있습니다.
호환될 수 없는 몇 기능은 사용할 수 없습니다.
namespace , const enum , export = , import =
28. Babel의 메인테이너 Henry Zhu ﴾aka @left_pad﴿
So I just had my last day at work yesterday... and deep breath.. starting today, I'm
announcing that I'll be pursuing full time open source!
이제 풀타임으로 오픈소스에 공헌한다는 소식
30. “What happens if Babel dies”? What happens when the current group of people
interested in this project get bored/burned out/move on to other things?
31. 위대한 커뮤니티에 작은 공헌 돌려주기, 어렵지 않습니다.
https://opencollective.com/babel
아니면, 용기있는 메인테이너 Henry에게 한 잔 사주는 건 어떨까요?
https://www.patreon.com/henryzhu
32. 감사합니다.
내용에 대한 피드백, 질문은 언제든지 환영합니다
Hyeseong Kim
Blog: https://blog.cometkim.kr
E‐mail: cometkim.kr@gmail.com
GitHub: cometkim
Twitter: @KrComet