ui5-community/babel-plugin-transform-modules-ui5

Importing certain modules cause syntax errors in transpiled output

Closed this issue · 2 comments

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.

Fixed in rc4

Thanks! 😄