Skip to content

Commit

Permalink
WIP: Fix defaultFileTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
matz3 committed Feb 3, 2021
1 parent b0a1875 commit 40dfdd3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/tasks/bundlers/generateLibraryPreload.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ function getBundleDefinition(namespace) {
if (namespace === "sap/ui/core") {
return {
name: `${namespace}/library-preload.js`,
defaultFileTypes: DEFAULT_FILE_TYPES,
sections: [
{
// exclude the content of sap-ui-core by declaring it as 'provided'
Expand Down Expand Up @@ -85,7 +84,6 @@ function getBundleDefinition(namespace) {
}
return {
name: `${namespace}/library-preload.js`,
defaultFileTypes: DEFAULT_FILE_TYPES,
sections: [
{
mode: "preload",
Expand All @@ -101,7 +99,6 @@ function getBundleDefinition(namespace) {
function getDesigntimeBundleDefinition(namespace) {
return {
name: `${namespace}/designtime/library-preload.designtime.js`,
defaultFileTypes: DEFAULT_FILE_TYPES,
sections: [
{
mode: "preload",
Expand All @@ -124,7 +121,6 @@ function getDesigntimeBundleDefinition(namespace) {
function getSupportFilesBundleDefinition(namespace) {
return {
name: `${namespace}/library-preload.support.js`,
defaultFileTypes: DEFAULT_FILE_TYPES,
sections: [
{
mode: "preload",
Expand All @@ -148,7 +144,8 @@ function createLibraryBundles(libraryNamespace, resources) {
bundleOptions: {
optimize: true,
usePredefineCalls: true,
ignoreMissingModules: true
ignoreMissingModules: true,
defaultFileTypes: DEFAULT_FILE_TYPES
}
},
resources
Expand All @@ -160,7 +157,8 @@ function createLibraryBundles(libraryNamespace, resources) {
optimize: true,
usePredefineCalls: true,
ignoreMissingModules: true,
skipIfEmpty: true
skipIfEmpty: true,
defaultFileTypes: DEFAULT_FILE_TYPES
}
},
resources
Expand All @@ -172,7 +170,8 @@ function createLibraryBundles(libraryNamespace, resources) {
optimize: false,
usePredefineCalls: true,
ignoreMissingModules: true,
skipIfEmpty: true
skipIfEmpty: true,
defaultFileTypes: DEFAULT_FILE_TYPES
}
},
resources
Expand Down Expand Up @@ -200,7 +199,8 @@ function getModuleBundlerOptions(config) {
optimize: config.preload,
decorateBootstrapModule: config.preload,
addTryCatchRestartWrapper: config.preload,
usePredefineCalls: config.preload
usePredefineCalls: config.preload,
defaultFileTypes: DEFAULT_FILE_TYPES
};

moduleBundlerOptions.bundleDefinition = getSapUiCoreBunDef(config.name, config.filters, config.preload);
Expand Down

0 comments on commit 40dfdd3

Please sign in to comment.