Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
es6-in-production
Search
pramendra
September 22, 2017
Technology
0
88
es6-in-production
pramendra
September 22, 2017
Tweet
Share
More Decks by pramendra
See All by pramendra
Why not React Native - JP
pramendra
3
1.1k
Why not React Native - EN
pramendra
0
320
Consulting in 2020
pramendra
0
86
Other Decks in Technology
See All in Technology
非情報系研究者へ送る Transformer入門
rishiyama
12
7.6k
会社紹介資料 / Sansan Company Profile
sansan33
PRO
16
410k
AI駆動AI普及活動 ~ 社内AI活用の「何から始めれば?」をAIで突破する
oracle4engineer
PRO
1
110
us-east-1 に障害が起きた時に、 ap-northeast-1 にどんな影響があるか 説明できるようになろう!
miu_crescent
PRO
13
4.4k
アーキテクチャモダナイゼーションを実現する組織
satohjohn
1
1k
Dr. Werner Vogelsの14年のキーノートから紐解くエンジニアリング組織への処方箋@JAWS DAYS 2026
p0n
1
140
Google系サービスで文字起こしから勝手にカレンダーを埋めるエージェントを作った話
risatube
0
190
楽しく学ぼう!ネットワーク入門
shotashiratori
1
440
脳内メモリ、思ったより揮発性だった
koutorino
0
370
It’s “Time” to use Temporal
sajikix
3
200
AIエージェント、 社内展開の前に知っておきたいこと
oracle4engineer
PRO
2
150
"作る"から"使われる"へ:Backstage 活用の現在地
sbtechnight
0
170
Featured
See All Featured
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
320
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
180
Designing for humans not robots
tammielis
254
26k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
350
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.4k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.2k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
240
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4k
AI: The stuff that nobody shows you
jnunemaker
PRO
3
400
Claude Code のすすめ
schroneko
67
220k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Transcript
ES6 in Production Pramendra Gupta
ES6(ES2015)
const test = ({id, user}) => <h1><span>{id}</span>{user}</ h1>; ES6(ES2015)
const test = ({id, user}) => <h1><span>{id}</span>{user}</h1>; "use strict"; var
test = function test(_ref) { var id = _ref.id, user = _ref.user; return React.createElement( "h1", null, React.createElement( "span", null, id ), user ); }; ES6 ES5
We ship fallback to support legacy browser
Browser Support
Disadvantage of ES5 File Size Parse Time big large Debug
hard
None
<script type="module" />
None
async/await Classes Arrow functions Promises Map Set ES6 modules support
lands in browsers <script type="module" />
Advantage of ES6 version size(min+gzipped) parse time ES5 40k 360ms
ES6+ 20k 170ms File Size Parse Time small low Debug easy
ES6 Rocks
How do we use <!DOCTYPE html> <html> <head> <title>ES6 in
Production</title> <script type="module" src="bundle.js"></script> </head> <body> <div id="app"></div> <script nomodule src="bundle-legacy.js"></script> </body> </html>
Demo https://github.com/pramendra/es6-in-production