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
JavaScriptures 5 - Babel & Webpack
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Artsy Open Source
April 13, 2018
Programming
630
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
JavaScriptures 5 - Babel & Webpack
https://github.com/artsy/javascriptures/tree/master/6_babel-webpack
Artsy Open Source
April 13, 2018
More Decks by Artsy Open Source
See All by Artsy Open Source
Adding React Native to an Existing App - Artsy x React Native 2018
artsyopensource
0
680
The Artsy Omakase - Artsy x React Native 2018
artsyopensource
1
1.1k
Learning How to Learn - Artsy x React Native
artsyopensource
0
580
JavaScriptures 4.2 - Local State
artsyopensource
0
600
JavaScriptures 3 - Styled Components
artsyopensource
1
480
JavaScriptures 4.1 - Relay
artsyopensource
0
300
JavaScriptures 2 - TypeScript
artsyopensource
0
400
JavaScriptures 1 - React
artsyopensource
0
410
Other Decks in Programming
See All in Programming
PHP Application における Kubernetes 内 gRPC 通信
ganchiku
0
560
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
320
エンジニアにデザインハーネスを 〜デザインプロセスを規定するためのハーネス〜 / Design harness from an engineer's perspective
rkaga
2
1.8k
仕様書を書く前にハーネスを作る - Agent Native開発は「探索を速く、判定を固く」
gotalab555
2
1.3k
php-fpmのプロセスが枯渇した日-調査・対処・そして本当にやるべきだったこと-
shibuchaaaan
0
180
型も通る、synthも通る、それでも危ない 〜AIのCDKの権限とコストを機械で検証する〜 / It Passes Type Checks, It Passes Synth Checks, but It’s Still Risky — Automatically Verifying Permissions and Costs in AI’s CDK —
seike460
PRO
1
490
全PRの83%がAIレビューだけでマージできるようになった開発組織はその後どうなったか
athug
0
630
yield再入門 #phpcon
o0h
PRO
0
830
属人化した知識を、 AIが辿れる地図にする
pkshadeck
PRO
1
120
Lean は証明の正しさを確認するためだけのツールって思ってませんか?
inoueasei
1
120
ソフトウェア設計に溶けるインフラ ― AWS CDK のインフラ認識論
konokenj
3
710
【やさしく解説 設計編・中級 #1】一つの車に、運転手は一人 ~ある倉庫システムの事例から~
panda728
PRO
0
200
Featured
See All Featured
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
260
Navigating Team Friction
lara
192
16k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.8k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
6k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
270
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
270
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
10k
A better future with KSS
kneath
240
18k
Side Projects
sachag
455
43k
What does AI have to do with Human Rights?
axbom
PRO
1
2.3k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
118
120k
Transcript
Babel/Webpack Be fruitful, and bundle JavaScriptures V Chris
None
But first, what is JavaScript?
None
None
Then Google Maps happened
None
JavaScript quickly went from being a “toy language” to something
that was understood to be capable of real power
But there were problems...
None
None
None
None
None
NodeJS opened up the world of JavaScript to a new
community
(But the language had problems)
None
However, server-side JavaScript started to be used in all sorts
of creative ways
It started to rewrite itself
None
None
CoffeeScript was the spark. It showed the world that if
you didn’t like the language you could change it, and you didn’t need the browser vendors to do so
None
None
Babel has support for the latest version of JavaScript through
syntax transformers. These plugins allow you to use new syntax without waiting for browser support
Before browser vendors implemented support for modern JavaScript this was
essential
Babel unlocked JavaScript’s potential as a language that can be
enjoyable to use
It also created a platform for real-time, open-source language development
and exploration
None
Language proposals are submitted by TC39, and prototyped with Babel
These proposals are then moved in stages through the approval
process
None
Once a proposal has reached Stage IV it is considered
stable and will be incorporated into the language
How does this apply to Artsy?
None
Our JavaScript projects incorporate many language features, some of which
are not a part of the official JavaScript spec
None
None
“JavaScript that Scales” (it’s true)
None
These language features don’t run natively in the browser
They need to be transpiled into something that the browser
(or the server) can understand
None
With JavaScript’s low and high-level language features, anything is possible
None
4. You are expected to expect the unexpected every minute,
every hour of every day and of every night. - John C. Lilly
And things move fast....
None
Things that were previously impossible to imagine have become possible,
as well as common
WebAssembly (abbreviated Wasm) is a binary instruction format for a
stack-based virtual machine. Wasm is designed as a portable target for compilation of high-level languages like C/C++/Rust, enabling deployment on the web for client and server applications.
JavaScript frameworks can make use of WebAssembly to confer massive
performance advantages and new features while still making functionality easily available to web developers.
But how does one manage this outward-spiraling complexity?
None
None
Webpack is a Module Bundler that runs during development
It builds a dependency graph of your application and combines
those assets into one or more bundles to be consumed by a target
None
Simply put…
None
None
It provides a common set of tools for managing application
complexity
None
Because of its robust dependency graph architecture, powerful developer tooling
can be built on top of it
None
And the overall developer experience highly optimized
None
However, Webpack configuration can be complex
None
It is designed for planet scale
But it can also be simple
webpack --mode development --output dist/bundle.js --watch
None
Webpack 4 can run without configuration via the “development” --mode
flag
What does a basic Webpack config look like?
None
None
None
None
What about a server?
None
None
None
Thanks!
None