Skip to content

Commit

Permalink
[INTERNAL] Terser: Set wrap_func_args output option to false
Browse files Browse the repository at this point in the history
See #330. Wrapping functions
passed to sap.ui.define in parenthesis might actually impact the
performance of UI5 applications in a negative way.
  • Loading branch information
RandomByte committed Sep 10, 2019
1 parent 6348bdb commit 07792ae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/lbt/bundle/AutoSplitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ class AutoSplitter {
warnings: false, // TODO configure?
compress: false, // TODO configure?
output: {
comments: copyrightCommentsPattern
comments: copyrightCommentsPattern,
wrap_func_args: false
}
// , outFileName: resource.name
// , outSourceMap: true
Expand Down
3 changes: 2 additions & 1 deletion lib/lbt/bundle/Builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,8 @@ class BundleBuilder {
warnings: false, // TODO configure?
compress: false, // TODO configure?
output: {
comments: copyrightCommentsPattern
comments: copyrightCommentsPattern,
wrap_func_args: false
}
// , outFileName: resource.name
// , outSourceMap: true
Expand Down
3 changes: 2 additions & 1 deletion lib/processors/uglifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ module.exports = function({resources}) {
}, {
warnings: false,
output: {
comments: copyrightCommentsPattern
comments: copyrightCommentsPattern,
wrap_func_args: false
},
compress: false
});
Expand Down

0 comments on commit 07792ae

Please sign in to comment.