Skip to content

Commit

Permalink
[INTERNAL] Task generateLibraryPreload: Exclude component preload art…
Browse files Browse the repository at this point in the history
…efacts from library preload (#754)
  • Loading branch information
flovogt authored Jun 14, 2022
1 parent f448567 commit 46e9454
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/tasks/bundlers/generateLibraryPreload.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function getDefaultLibraryPreloadFilters(namespace, excludes) {
const filters = [
`${namespace}/`,
`${namespace}/**/manifest.json`,
`!${namespace}/*-preload.js`, // exclude all bundles
`!${namespace}/**/*-preload.js`, // exclude all bundles
`!${namespace}/designtime/`,
`!${namespace}/**/*.designtime.js`,
`!${namespace}/**/*.support.js`
Expand Down
16 changes: 8 additions & 8 deletions test/lib/tasks/bundlers/generateLibraryPreload.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ test.serial("generateLibraryPreload", async (t) => {
filters: [
"my/lib/",
"my/lib/**/manifest.json",
"!my/lib/*-preload.js",
"!my/lib/**/*-preload.js",
"!my/lib/designtime/",
"!my/lib/**/*.designtime.js",
"!my/lib/**/*.support.js",
Expand Down Expand Up @@ -354,7 +354,7 @@ test.serial("generateLibraryPreload for sap.ui.core (w/o ui5loader.js)", async (
filters: [
"sap/ui/core/",
"sap/ui/core/**/manifest.json",
"!sap/ui/core/*-preload.js",
"!sap/ui/core/**/*-preload.js",
"!sap/ui/core/designtime/",
"!sap/ui/core/**/*.designtime.js",
"!sap/ui/core/**/*.support.js",
Expand Down Expand Up @@ -636,7 +636,7 @@ test.serial("generateLibraryPreload for sap.ui.core (/w ui5loader.js)", async (t
filters: [
"sap/ui/core/",
"sap/ui/core/**/manifest.json",
"!sap/ui/core/*-preload.js",
"!sap/ui/core/**/*-preload.js",
"!sap/ui/core/designtime/",
"!sap/ui/core/**/*.designtime.js",
"!sap/ui/core/**/*.support.js",
Expand Down Expand Up @@ -970,7 +970,7 @@ test.serial("generateLibraryPreload for sap.ui.core with old specVersion defined
filters: [
"sap/ui/core/",
"sap/ui/core/**/manifest.json",
"!sap/ui/core/*-preload.js",
"!sap/ui/core/**/*-preload.js",
"!sap/ui/core/designtime/",
"!sap/ui/core/**/*.designtime.js",
"!sap/ui/core/**/*.support.js",
Expand Down Expand Up @@ -1126,7 +1126,7 @@ test.serial("generateLibraryPreload for sap.ui.core with own bundle configuratio
filters: [
"sap/ui/core/",
"sap/ui/core/**/manifest.json",
"!sap/ui/core/*-preload.js",
"!sap/ui/core/**/*-preload.js",
"!sap/ui/core/designtime/",
"!sap/ui/core/**/*.designtime.js",
"!sap/ui/core/**/*.support.js",
Expand Down Expand Up @@ -1293,7 +1293,7 @@ test.serial("generateLibraryPreload for sap.ui.core with own bundle configuratio
filters: [
"sap/ui/core/",
"sap/ui/core/**/manifest.json",
"!sap/ui/core/*-preload.js",
"!sap/ui/core/**/*-preload.js",
"!sap/ui/core/designtime/",
"!sap/ui/core/**/*.designtime.js",
"!sap/ui/core/**/*.support.js",
Expand Down Expand Up @@ -1482,7 +1482,7 @@ test.serial("generateLibraryPreload with excludes", async (t) => {
filters: [
"my/lib/",
"my/lib/**/manifest.json",
"!my/lib/*-preload.js",
"!my/lib/**/*-preload.js",
"!my/lib/designtime/",
"!my/lib/**/*.designtime.js",
"!my/lib/**/*.support.js",
Expand Down Expand Up @@ -1553,7 +1553,7 @@ test.serial("generateLibraryPreload with invalid excludes", async (t) => {
filters: [
"my/lib/",
"my/lib/**/manifest.json",
"!my/lib/*-preload.js",
"!my/lib/**/*-preload.js",
"!my/lib/designtime/",
"!my/lib/**/*.designtime.js",
"!my/lib/**/*.support.js"
Expand Down

0 comments on commit 46e9454

Please sign in to comment.