Closed dpw closed 8 years ago
It's an old version of babel -- a whole week old. Babel 6 is no longer just a transpiler, it's a transpiler platform transpiler .. platform .. is that right? Transpiler.
I've pinned it to Babel v5, the one known to work without extra faff.
Actually I think I'll make a webbuild image, so changing this stuff won't force all the other things to rebuild.
I don't have lessc or babel installed. So rather than installing them locally, I put them in the build container and adapted
display/local.mk
to use that container (https://github.com/squaremo/ambergreen/commit/600f9fb69df692ef16a80ad1040167fcf6c2ef41). Which all seems to work fine, but:So after I bit of digging, I've established that the wodge of inline xml is a react thing. Babel, at least in version 6, needs a plugin to support that (http://babeljs.io/docs/plugins/transform-react-jsx/). So I tried to add that plugin: https://github.com/squaremo/ambergreen/commit/88c4f638b2187e30d4d2f78a7fc0a135fb8108a0 . And now:
Halp!
What do you have working locally @squaremo? Is it an old version of babel that has the jsx stuff built in? Or you do have the plugin installed, and listed in your
.babelrc
maybe?