@bitspook
module.js
module.js
module.js
...
Build
bundle.js
Concatenation
bundle.js
file1.js
file2.js
file-n.js
Minification
var name = "Joe";
var greet = function(name) {
updateHtml("Hello" + name);
}
greet(name);
var a,b;a="Joe";b=function(c){d("Hello"+a);}b(a);
Dead Code Elimination and Tree shaking
var name = "Joe";
var greet_fr = function(name) {
updateHtml("Bonjour " + name);
}
var greet = function(name) {
updateHtml("Hello " + name);
}
greet(name);
var name = "Joe";
var greet = function(name) {
updateHtml("Hello" + name);
}
greet(name);
Compiling Templates
HTML-ish template
Javascript
Transpilation
Future/custom Javascript
Compatible Javascript
Code Splitting
route-1-bundle.js
file1.js
file2.js
file-n.js
route-2-bundle.js
Compression
bundle.js
bundle.js.gz
Utility Libraries
Funtional Programming
Architectures over framworks
Reactive Programming
Strongly Typed solutions
Compile to JS Languages
GraphQL
GraphQL