babel-plugin-transform-modules-ui5 7.1.3 → 7.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [7.1.4](https://github.com/ui5-community/babel-plugin-transform-modules-ui5/compare/v7.1.3...v7.1.4) (2023-04-11)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * properly handle dynamic import of non-existing modules ([#94](https://github.com/ui5-community/babel-plugin-transform-modules-ui5/issues/94)) ([c443b36](https://github.com/ui5-community/babel-plugin-transform-modules-ui5/commit/c443b36d5035d2e2fa367e074d0732336af8eb78))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [7.1.3](https://github.com/ui5-community/babel-plugin-transform-modules-ui5/compare/v7.1.2...v7.1.3) (2023-04-11)
7
18
 
8
19
 
@@ -157,7 +157,7 @@ const buildDynamicImportHelper = (0, _core.template)(`
157
157
  function __ui5_require_async(path) {
158
158
  return new Promise((resolve, reject) => {
159
159
  sap.ui.require([path], (module) => {
160
- if (!module.__esModule) {
160
+ if (!(module && module.__esModule)) {
161
161
  module = module === null || !(typeof module === "object" && path.endsWith("/library")) ? { default: module } : module;
162
162
  Object.defineProperty(module, "__esModule", { value: true });
163
163
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babel-plugin-transform-modules-ui5",
3
- "version": "7.1.3",
3
+ "version": "7.1.4",
4
4
  "description": "An unofficial babel plugin for SAP UI5.",
5
5
  "main": "dist/index.js",
6
6
  "repository": {
@@ -92,5 +92,5 @@
92
92
  "prettier": "^2.8.4",
93
93
  "rimraf": "^4.1.2"
94
94
  },
95
- "gitHead": "54a5521dea19fedd9cd53f7aeabc5e383e926303"
95
+ "gitHead": "4a3fb836d05e71f8a4b89f7597b8d234edf18e55"
96
96
  }