Skip to content

tadeegan/react-closure-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Modern Bazel + Closure + React workflow

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published