@ui5/builder 3.0.0-alpha.1 → 3.0.0-alpha.2
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 +776 -0
- package/lib/lbt/analyzer/JSModuleAnalyzer.js +14 -6
- package/lib/lbt/analyzer/XMLTemplateAnalyzer.js +2 -1
- package/lib/lbt/bundle/Builder.js +360 -103
- package/lib/lbt/bundle/BundleWriter.js +17 -0
- package/lib/lbt/resources/LocatorResource.js +9 -5
- package/lib/lbt/resources/LocatorResourcePool.js +8 -4
- package/lib/lbt/utils/parseUtils.js +1 -1
- package/lib/processors/bundlers/moduleBundler.js +28 -7
- package/lib/processors/minifier.js +10 -5
- package/lib/tasks/bundlers/generateBundle.js +75 -17
- package/lib/tasks/bundlers/generateComponentPreload.js +12 -5
- package/lib/tasks/bundlers/generateFlexChangesBundle.js +3 -2
- package/lib/tasks/bundlers/generateLibraryPreload.js +51 -13
- package/lib/tasks/bundlers/generateStandaloneAppBundle.js +46 -7
- package/lib/tasks/generateResourcesJson.js +1 -1
- package/lib/tasks/minify.js +11 -3
- package/lib/types/library/LibraryBuilder.js +2 -2
- package/package.json +6 -4
|
@@ -175,12 +175,11 @@ const EnrichedVisitorKeys = (function() {
|
|
|
175
175
|
|
|
176
176
|
// merge with 'official' visitor keys
|
|
177
177
|
Object.keys(VisitorKeys).forEach( (type) => {
|
|
178
|
-
//
|
|
179
|
-
//
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
// ExperimentalSpreadProperty
|
|
178
|
+
// Ignore deprecated keys:
|
|
179
|
+
// - ExperimentalSpreadProperty => SpreadElement
|
|
180
|
+
// - ExperimentalRestProperty => RestElement
|
|
181
|
+
// They are about to be removed, see: https://github.com/eslint/eslint-visitor-keys/pull/36
|
|
182
|
+
if (type === "ExperimentalSpreadProperty" || type === "ExperimentalRestProperty") {
|
|
184
183
|
return;
|
|
185
184
|
}
|
|
186
185
|
// Ignore JSX visitor-keys because they aren't used.
|
|
@@ -188,6 +187,15 @@ const EnrichedVisitorKeys = (function() {
|
|
|
188
187
|
return;
|
|
189
188
|
}
|
|
190
189
|
|
|
190
|
+
// Ignore new ES2022 syntax as we currently use ES2021 (see parseUtils.js)
|
|
191
|
+
if (
|
|
192
|
+
type === "PrivateIdentifier" ||
|
|
193
|
+
type === "PropertyDefinition" ||
|
|
194
|
+
type === "StaticBlock"
|
|
195
|
+
) {
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
|
|
191
199
|
const visitorKeys = VisitorKeys[type];
|
|
192
200
|
const condKeys = TempKeys[type];
|
|
193
201
|
if ( condKeys === undefined ) {
|
|
@@ -231,9 +231,10 @@ class XMLTemplateAnalyzer {
|
|
|
231
231
|
// looks like a UI5 library or package name
|
|
232
232
|
const moduleName = ModuleName.fromUI5LegacyName( (namespace ? namespace + "." : "") + localName );
|
|
233
233
|
|
|
234
|
+
this._analyzeCoreRequire(node);
|
|
235
|
+
|
|
234
236
|
// ignore FragmentDefinition (also skipped by runtime XMLTemplateProcessor)
|
|
235
237
|
if ( FRAGMENTDEFINITION_MODULE !== moduleName ) {
|
|
236
|
-
this._analyzeCoreRequire(node);
|
|
237
238
|
this.promises.push(this._analyzeModuleDependency(node, moduleName, this.conditional));
|
|
238
239
|
}
|
|
239
240
|
}
|