Add ability to handle scripts using text/babel
type
#15
Comments
https://github.com/danmartinez101/throw-in-the-towel/blob/master/index.js I built this based on babel-standalone. This is basically the only addition I made on top of babel-standalone. I'd be ecstatic to submit a PR for this and deprecate throw-in-the-towel. Let me know what you think! |
That looks great! Any update on a PR? |
I'm still happy to create a PR for this if @Daniel15 would like to integrate something like it. |
Sure, I'd appreciate a pull request 😄 |
Any updates? I believe a lot of developers need this feature since Babel 6 does not support it. |
Released in babel-standalone 6.10.3. |
Is it possible to do this for a page which was loaded with ajax? |
@dublinus How are you doing your AJAX request? Most likely you should just use |
@Daniel15 That's what I ended up doing. Thanks! |
According to sources `text/jsx` is supported too for auto-compilation in browser babel#15
As a simple example:
babel-standalone
should provide some way to parse alltext/babel
script tags, transform the script using Babel, and evaluate their contents.The text was updated successfully, but these errors were encountered: