A Babel plugin that transforms ES6 module syntax into sap.ui.define AMD-style calls for SAPUI5/OpenUI5 applications. Version 0.0.1 is an initial release with no recent updates. It fills the gap between modern JavaScript modules and UI5's legacy AMD module system, enabling developers to write ES6 code and compile it for UI5. Unlike standard Babel module transforms, this plugin targets SAP's specific define pattern.
npm install babel-ui5-module-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows installation, Babel config with plugin options, and a minimal ES6 module transformation to sap.ui.define.
Ensure other module transforms are not conflicting; this plugin replaces the standard module transform for UI5.
Check if the plugin supports Babel 7; consider using @ui5/builder or ui5-loader as alternatives.
Avoid dynamic imports in UI5 projects, or use a different module bundler like ui5-tooling.
Use with default options first; refer to example project for guidance.
Use correct option name as per documentation (currently undocumented; avoid options or check source code).
Ensure babel-ui5-module-formatter is the last plugin in the plugins array.
No dependency data recorded yet.