Skip to content

Commit

Permalink
[INTERNAL] generateLibrary/-ComponentPreload: Remove 'dependencies' p…
Browse files Browse the repository at this point in the history
…arameter
  • Loading branch information
RandomByte committed Apr 27, 2022
1 parent a8837cc commit 410e6fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/tasks/bundlers/generateComponentPreload.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const {negateFilters} = require("../../lbt/resources/ResourceFilterList");
* @alias module:@ui5/builder.tasks.generateComponentPreload
* @param {object} parameters Parameters
* @param {module:@ui5/fs.DuplexCollection} parameters.workspace DuplexCollection to read and write files
* @param {module:@ui5/fs.AbstractReader} parameters.dependencies Reader or Collection to read dependency files
* @param {module:@ui5/builder.tasks.TaskUtil|object} [parameters.taskUtil] TaskUtil
* @param {object} parameters.options Options
* @param {string} parameters.options.projectName Project name
Expand All @@ -25,7 +24,7 @@ const {negateFilters} = require("../../lbt/resources/ResourceFilterList");
* @returns {Promise<undefined>} Promise resolving with <code>undefined</code> once data has been written
*/
module.exports = function({
workspace, dependencies, taskUtil, options: {projectName, paths, namespaces, excludes = []}
workspace, taskUtil, options: {projectName, paths, namespaces, excludes = []}
}) {
let nonDbgWorkspace = workspace;
if (taskUtil) {
Expand Down
3 changes: 1 addition & 2 deletions lib/tasks/bundlers/generateLibraryPreload.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ function getSapUiCoreBunDef(name, filters, preload) {
* @alias module:@ui5/builder.tasks.generateLibraryPreload
* @param {object} parameters Parameters
* @param {module:@ui5/fs.DuplexCollection} parameters.workspace DuplexCollection to read and write files
* @param {module:@ui5/fs.AbstractReader} parameters.dependencies Reader or Collection to read dependency files
* @param {module:@ui5/builder.tasks.TaskUtil|object} [parameters.taskUtil] TaskUtil
* @param {string[]} [parameters.options.excludes=[]] List of modules declared as glob patterns (resource name patterns)
* that should be excluded from the library-preload.js bundle.
Expand All @@ -277,7 +276,7 @@ function getSapUiCoreBunDef(name, filters, preload) {
* @param {string} parameters.options.projectName Project name
* @returns {Promise<undefined>} Promise resolving with <code>undefined</code> once data has been written
*/
module.exports = function({workspace, dependencies, taskUtil, options: {projectName, excludes = []}}) {
module.exports = function({workspace, taskUtil, options: {projectName, excludes = []}}) {
let nonDbgWorkspace = workspace;
if (taskUtil) {
nonDbgWorkspace = workspace.filter(function(resource) {
Expand Down

0 comments on commit 410e6fb

Please sign in to comment.