Closed o0Djeen0o closed 3 years ago
Hi,
The error is related to this change: https://github.com/babel/babel/pull/13314
Facing the same problem, any solution for this?
Facing the same problem, any solution for this?
I opened a PR for this issue: https://github.com/r-murphy/babel-plugin-transform-modules-ui5/pull/53 Not sure if it will be the final fix, at least it solved the problem in our use case.
Thanks for the PR @GuillaumedesPommareSAP. I just published a quick patch release 7.0.4. Please give a try.
I have another branch in progress with some other dependency updates.
Hi,
We recently upgraded babel stack and started to have issues with Typescript integration. Basically, if a file only contains type declarations, like :
then Babel will type it as an
ExportNamedDeclaration
(see this fixture with input and output)
However, from babel plugin transform UI5 side, it seems that such node is not skipped, leading to an error and impossibility to compile :
For me, a quick win would be to skip visiting such node from the plugin. For instance, here we should add a check for the node type, like :
Maybe this is a bit to simple and would need some refinements ?
Any help would be welcomed, as I'm not confident with my AST parsing comprehension :-)
Best regards