Closed sindresorhus closed 7 years ago
So judging by the linked issue, Bublé fails when it encounters async/await. Setting generator: false
as recommended there also doesn't help. I'll see what can be done!
Try the second tip: https://gitlab.com/Rich-Harris/buble/issues/71#note_31999787
Tried require('acorn-es7-plugin')(require('acorn/dist/acorn.js'));
, but no positive effect.
I think I'll have to replace Bublé with https://github.com/alexmingoia/jsx-transform in https://github.com/vadimdemedes/import-jsx.
Or not. Just discovered source map support is missing.
Wondering if using babel-core
only with babel-plugin-transform-react-jsx
is going to be of a problem. I compared sizes of buble and this combo using cost-of-modules
and it doesn't seem to be a big difference. Stability at the cost of increased size.
Updated to use latest import-jsx
, which uses Babel, instead of Buble. Works now!
@vadimdemedes I'm getting an error with this:
Can you add support for async/await in Ink? This is really the downside of transpiling JSX...
See: https://gitlab.com/Rich-Harris/buble/issues/71