JSX "Polyfill"?


(Caleb) #1

An interesting idea I’ve had is to make a JSX “polyfill” that would allow you to use JSX without a transpiler. Has anyone tried this before, or have any thoughts on it?


(Sophie Alpert) #2

Check out babel-standalone: https://github.com/babel/babel/tree/master/packages/babel-standalone. :slight_smile:


(Caleb) #3

Thanks @sophiebits, I’ve been looking at babel-standalone. I wish there was a way to only include the plugins wanted, though, because including the entire file seems kind of wasteful since it is fairly large.