diff --git a/README.md b/README.md index ea4b3b2..4cb7a96 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ A more detailed feature list includes: ### Converting ES modules (import/export) into sap.ui.define or sap.ui.require -The plugin will wrap any code having import/export statements in an sap.ui.define. If there is no import/export, it won't be wrapped. +The plugin will wrap any code having import/export statements in `sap.ui.define`. If there is no import/export, it won't be wrapped. #### Static Import @@ -341,6 +341,42 @@ sap.ui.define(["./a"], A => { Also refer to the `neverUseStrict` option below. +### Top-Level Scripts (e.g. QUnit Testsuites) + +By default, modules are converted to UI5 AMD-like modules using `sap.ui.define`. In some cases, it may be necessary to include modules via script tags, such as for QUnit testsuites. Therefore, the Babel plugin supports converting modules into scripts using `sap.ui.require` instead of AMD-like modules using `sap.ui.define`. These modules can then be used as *top-level* scripts, which can be included via `