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

A Babel transformer plugin for OpenUI5/SAPUI5. It allows you to develop UI5 applications by using the latest ECMAScript or TypeScript, including new syntax and objective oriented programming technology.
MIT License
34 stars 16 forks source link

feat: imports added by other plugins are also included in the define calls #126

Closed nlunets closed 5 months ago

nlunets commented 5 months ago

The babel visitor tend to run in parallel so any one of them adding imports at the "wrong" time.

To avoid this we run the ImportDeclaration visitor again during the exit phase of the program.

petermuessig commented 5 months ago

LGTM, thx - will release it right now