Skip to content

Commit 460a961

Browse files
committed
[INTERNAL] analyzeLibraryJS: add 'designtime' property for supported properties
1 parent 83d8406 commit 460a961

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/lbt/analyzer/analyzeLibraryJS.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ async function analyze(resource) {
4545
libInfo.controls = getStringArray(value, true);
4646
} else if ( key === "elements" && value.type == Syntax.ArrayExpression ) {
4747
libInfo.elements = getStringArray(value, true);
48-
} else if ( key === "dependencies" || key === "extensions" || key === "name" || key === "version" ) {
48+
} else if ( ["designtime", "dependencies", "extensions", "name", "version"].includes(key) ) {
4949
// do nothing, for all other supported properties
5050
} else {
5151
log.error(

test/lib/lbt/analyzer/analyzeLibraryJS.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ sap.ui.define([
5252
extensions: {
5353
customExtension: "UI5"
5454
},
55+
designtime: "library/test/library.designtime.js",
5556
customProperty2: "UI5"
5657
});
5758
return thisLib;

0 commit comments

Comments
 (0)