Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 1.58 KB

File metadata and controls

20 lines (15 loc) · 1.58 KB

Modern React + Closure + Bazel workflow

Build the bundle with:

bazel build //app:bundle
python -m SimpleHTTPServer

Navigate to localhost:8000/static in your browser.

Currently runs at 881b after jsx+es6 transpilation and minification. Can you make a smaller equivalent example? Babel makes 1.7kb.

Features:

  • Full type checking
  • Minification of member variables and methods of the App class.
  • Source maps out of the box

TODO:

  • Can we further minify the React.xxx apis? aka replace React.createElement() with var a = React.createElement; a();
  • Bug in closure that can't compose source maps with jsx properly