@ui5/builder 4.0.7 → 4.0.9

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
@@ -2,10 +2,26 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
4
4
 
5
- A list of unreleased changes can be found [here](https://github.com/SAP/ui5-builder/compare/v4.0.7...HEAD).
5
+ A list of unreleased changes can be found [here](https://github.com/SAP/ui5-builder/compare/v4.0.9...HEAD).
6
+
7
+ <a name="v4.0.9"></a>
8
+ ## [v4.0.9] - 2025-08-10
9
+ ### Bug Fixes
10
+ - **minify:** Apply value of a resource's OmitFromBuildResult-tag to derived resources [`112d204`](https://github.com/SAP/ui5-builder/commit/112d204b230c973b6c209105e4e8a383fc1da35d)
11
+
12
+
13
+ <a name="v4.0.8"></a>
14
+ ## [v4.0.8] - 2025-07-15
15
+ ### Bug Fixes
16
+ - **bundle/Builder:** Skip source map for empty or trivia-only files [`4763253`](https://github.com/SAP/ui5-builder/commit/4763253985ae869c541875d82d0609cb5ef28216)
17
+
18
+ ### Dependency Updates
19
+ - Bump cheerio from 1.0.0 to 1.1.0 ([#1126](https://github.com/SAP/ui5-builder/issues/1126)) [`bade2bc`](https://github.com/SAP/ui5-builder/commit/bade2bc9f8a623a332d5768dc4ce6bd0036ba4bf)
20
+ - Bump terser from 5.39.2 to 5.40.0 ([#1118](https://github.com/SAP/ui5-builder/issues/1118)) [`80a5975`](https://github.com/SAP/ui5-builder/commit/80a5975c037e7c0bf9a041c284ec4a510bf2cbfd)
21
+
6
22
 
7
23
  <a name="v4.0.7"></a>
8
- ## [v4.0.7] - 2025-05-18
24
+ ## [v4.0.7] - 2025-05-19
9
25
  ### Bug Fixes
10
26
  - **manifestEnhancer:** Only use valid files for supportedLocales ([#1080](https://github.com/SAP/ui5-builder/issues/1080)) [`a6c04d2`](https://github.com/SAP/ui5-builder/commit/a6c04d26ae964566c82e82d1be2ef6a7fd836530)
11
27
 
@@ -957,6 +973,8 @@ to load the custom bundle file instead.
957
973
 
958
974
  ### Features
959
975
  - Add ability to configure component preloads and custom bundles [`2241e5f`](https://github.com/SAP/ui5-builder/commit/2241e5ff98fd95f1f80cc74959655ae7a9c660e7)
976
+ [v4.0.9]: https://github.com/SAP/ui5-builder/compare/v4.0.8...v4.0.9
977
+ [v4.0.8]: https://github.com/SAP/ui5-builder/compare/v4.0.7...v4.0.8
960
978
  [v4.0.7]: https://github.com/SAP/ui5-builder/compare/v4.0.6...v4.0.7
961
979
  [v4.0.6]: https://github.com/SAP/ui5-builder/compare/v4.0.5...v4.0.6
962
980
  [v4.0.5]: https://github.com/SAP/ui5-builder/compare/v4.0.4...v4.0.5
@@ -383,9 +383,10 @@ class BundleBuilder {
383
383
  if (map.mappings) {
384
384
  map.mappings = "AAAA," + map.mappings;
385
385
  } else {
386
- // If there are no existing mappings (e.g. if the file is empty or only comments),
387
- // make sure to still define a single mapping
388
- map.mappings = "AAAA";
386
+ // If there are no existing mappings (e.g. if the file is empty or contains only comments),
387
+ // do not specify any mapping. Especially Safari would otherwise reject the source map due to
388
+ // "Invalid Mappings"
389
+ map.mappings = "";
389
390
  }
390
391
  }
391
392
 
@@ -44,6 +44,11 @@ export default async function({
44
44
  resource, dbgResource, sourceMapResource, dbgSourceMapResource
45
45
  }) => {
46
46
  if (taskUtil) {
47
+ // Carry over OmitFromBuildResult from input resource to all derived resources
48
+ if (taskUtil.getTag(resource, taskUtil.STANDARD_TAGS.OmitFromBuildResult)) {
49
+ taskUtil.setTag(dbgResource, taskUtil.STANDARD_TAGS.OmitFromBuildResult);
50
+ taskUtil.setTag(sourceMapResource, taskUtil.STANDARD_TAGS.OmitFromBuildResult);
51
+ }
47
52
  taskUtil.setTag(resource, taskUtil.STANDARD_TAGS.HasDebugVariant);
48
53
  taskUtil.setTag(dbgResource, taskUtil.STANDARD_TAGS.IsDebugVariant);
49
54
  taskUtil.setTag(sourceMapResource, taskUtil.STANDARD_TAGS.HasDebugVariant);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/builder",
3
- "version": "4.0.7",
3
+ "version": "4.0.9",
4
4
  "description": "UI5 Tooling - Builder",
5
5
  "author": {
6
6
  "name": "SAP SE",
@@ -121,43 +121,43 @@
121
121
  "url": "git@github.com:SAP/ui5-builder.git"
122
122
  },
123
123
  "dependencies": {
124
- "@jridgewell/sourcemap-codec": "^1.5.0",
124
+ "@jridgewell/sourcemap-codec": "^1.5.4",
125
125
  "@ui5/fs": "^4.0.1",
126
126
  "@ui5/logger": "^4.0.1",
127
- "cheerio": "1.0.0",
127
+ "cheerio": "1.1.0",
128
128
  "escape-unicode": "^0.2.0",
129
129
  "escope": "^4.0.0",
130
- "espree": "^10.3.0",
130
+ "espree": "^10.4.0",
131
131
  "graceful-fs": "^4.2.11",
132
132
  "jsdoc": "^4.0.4",
133
133
  "less-openui5": "^0.11.6",
134
134
  "pretty-data": "^0.40.0",
135
135
  "semver": "^7.7.2",
136
- "terser": "^5.39.2",
137
- "workerpool": "^9.2.0",
136
+ "terser": "^5.43.1",
137
+ "workerpool": "^9.3.3",
138
138
  "xml2js": "^0.6.2"
139
139
  },
140
140
  "devDependencies": {
141
141
  "@eslint/js": "^9.14.0",
142
142
  "@istanbuljs/esm-loader-hook": "^0.3.0",
143
- "@jridgewell/trace-mapping": "^0.3.25",
143
+ "@jridgewell/trace-mapping": "^0.3.29",
144
144
  "@ui5/project": "^4.0.4",
145
- "ava": "^6.3.0",
145
+ "ava": "^6.4.1",
146
146
  "chokidar-cli": "^3.0.0",
147
147
  "cross-env": "^7.0.3",
148
148
  "depcheck": "^1.4.7",
149
149
  "docdash": "^2.0.2",
150
- "eslint": "^9.27.0",
150
+ "eslint": "^9.33.0",
151
151
  "eslint-config-google": "^0.14.0",
152
- "eslint-plugin-ava": "^15.0.1",
153
- "eslint-plugin-jsdoc": "^50.6.17",
154
- "esmock": "^2.7.0",
155
- "globals": "^16.1.0",
152
+ "eslint-plugin-ava": "^15.1.0",
153
+ "eslint-plugin-jsdoc": "^52.0.4",
154
+ "esmock": "^2.7.1",
155
+ "globals": "^16.3.0",
156
156
  "line-column": "^1.0.2",
157
157
  "nyc": "^17.1.0",
158
158
  "open-cli": "^8.0.0",
159
159
  "rimraf": "^6.0.1",
160
- "sinon": "^20.0.0",
160
+ "sinon": "^21.0.0",
161
161
  "tap-xunit": "^2.4.1"
162
162
  }
163
163
  }