Importing certain modules cause syntax errors in transpiled output
Closed this issue · 2 comments
Elberet commented
When importing modules such as import "@babel/polyfill"
, the local variable name generated by babel-plugin-transform-modules-ui5
is not correct syntax:
Example:
import "@babel/polyfill"
Result:
sap.ui.define(["@babel/polyfill"], function(__@babel_polyfill) {
// ...
});
The @
is not allowed here.
r-murphy commented
Fixed in rc4
Elberet commented
Thanks! 😄