Skip to content

Commit 314a902

Browse files
authored
[ui5-builder][INTERNAL] generateLibraryPreload: Fix typo for caja html sanitizer (#503)
Fix path for caja-html-sanitizer: This way it will be bundled and is part of the library-preload.js
1 parent 786ce2e commit 314a902

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/builder/lib/tasks/bundlers/generateLibraryPreload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function getBundleDefinition(namespace) {
4848

4949
// include only thirdparty that is very likely to be used
5050
"sap/ui/thirdparty/crossroads.js",
51-
"sap/ui/thirdparty/caja-htmlsanitizer.js",
51+
"sap/ui/thirdparty/caja-html-sanitizer.js",
5252
"sap/ui/thirdparty/hasher.js",
5353
"sap/ui/thirdparty/signals.js",
5454
"sap/ui/thirdparty/jquery-mobile-custom.js",

packages/builder/test/lib/tasks/bundlers/generateLibraryPreload.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ test("generateLibraryPreload for sap.ui.core (w/o ui5loader.js)", async (t) => {
329329
"sap/ui/util/",
330330
"sap/ui/Global.js",
331331
"sap/ui/thirdparty/crossroads.js",
332-
"sap/ui/thirdparty/caja-htmlsanitizer.js",
332+
"sap/ui/thirdparty/caja-html-sanitizer.js",
333333
"sap/ui/thirdparty/hasher.js",
334334
"sap/ui/thirdparty/signals.js",
335335
"sap/ui/thirdparty/jquery-mobile-custom.js",
@@ -596,7 +596,7 @@ test("generateLibraryPreload for sap.ui.core (/w ui5loader.js)", async (t) => {
596596
"sap/ui/util/",
597597
"sap/ui/Global.js",
598598
"sap/ui/thirdparty/crossroads.js",
599-
"sap/ui/thirdparty/caja-htmlsanitizer.js",
599+
"sap/ui/thirdparty/caja-html-sanitizer.js",
600600
"sap/ui/thirdparty/hasher.js",
601601
"sap/ui/thirdparty/signals.js",
602602
"sap/ui/thirdparty/jquery-mobile-custom.js",

0 commit comments

Comments
 (0)