A Babel plugin that transpiles ES6 module syntax into sap.ui.define calls (AMD-like syntax) for UI5 applications (OpenUI5/SAPUI5). Version 0.0.1 is the initial release; the project is in early development with low release cadence. It enables developers to write ES6 modules and compile them to the format expected by UI5's module loader. Key differentiators: it is a dedicated Babel formatter for UI5, but has several limitations: no support for named imports (use wildcard imports instead), relative imports only within the same or subdirectories, and cannot mix default and named exports. Alternatives include using a UI5-aware bundler or manually transpiling.
npm install babel-openui5-module-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
How to configure Babel with this plugin and a minimal ES6 module transpilation example.
Use absolute imports like 'mycompany/myapp/foo' or ensure the Babel plugin resolves paths at transpile time.
Replace named imports with 'import * as module from ...' and access exports via module.foo.
Use either a default export or named exports, not both.
Restructure module to have either a single default export or multiple named exports (no mixing).
Run 'npm install --save-dev babel-ui5-module-formatter' and ensure .babelrc has '"modules": "babel-ui5-module-formatter"'.
Use the 'modules' option in .babelrc, not 'plugins'. Ensure Babel version 6.x is used.
No dependency data recorded yet.