mihaip / react-closure-compiler

Tooling to teach Closure Compiler about React
Apache License 2.0
100 stars 14 forks source link

Make the validators static properties of the class #44

Closed arv closed 5 years ago

arv commented 5 years ago

This way we do not need to manipulate imports and exports to include the validators.

For React.createClass this means that we end up with code that cannot be stripped by Closure Compiler unless optimizeForSize is true.

arv commented 5 years ago

Ooops, my github foo is rusty. I committed these as 4 commits.