-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Minifier: Support input source maps (#780)
If a resource references a source map (for example from an earlier transpilation): 1. Use that source map for the debug variant of the resource 2. Pass it to terser so it can update it based on the transformation, preserving the mapping to the initial source Before this change, the minifier processor always created a new source map based on the minification of the resource. This change is active by default. However, if a resource is changed before the `minify` task is executed (for example by tasks like `replaceCopyright`), we assume that the referenced source map is potentially corrupt and therefore ignore it. JIRA: CPOUI5FOUNDATION-467 --------- Co-authored-by: Matthias Osswald <mat.osswald@sap.com> Co-authored-by: Günter Klatt <57760635+KlattG@users.noreply.github.com>
- Loading branch information
1 parent
86ef07d
commit 67ecb27
Showing
20 changed files
with
1,494 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
test/expected/build/application.b/standalone/resources/sap-ui-custom.js.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.