chore: Add explicit dependency for terser-webpack-plugin - #1502
Merged
danxuliu merged 2 commits intoAug 8, 2026
Conversation
terser-webpack-plugin was already an implicit dependency, but now it is made explicit to ensure that the build process will not break if the implicit dependency is removed. This could happen with an update to webpack >= 5.108.0, as it replaced terser-webpack-plugin with minimizer-webpack-plugin. However, note that even if terser-webpack-plugin was also replaced with minimizer-webpack-plugin in webpack.config.js in the PDF viewer the build could still break, as the latest webpack-vue-config version (7.0.3) also uses both webpack >= 5.108.0 and terser-webpack-plugin without depending on the later. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Member
Author
|
/backport to stable34 please |
Member
Author
|
/backport to stable33 please |
Member
Author
|
/backport to stable32 please |
ShGKme
requested changes
Aug 7, 2026
| "adm-zip": "^0.6.0", | ||
| "axios": "^1.13.6", | ||
| "cli-progress": "^3.12.0", | ||
| "terser-webpack-plugin": "^5.6.1", |
Contributor
There was a problem hiding this comment.
This dependency isn't used directly by the files_pdfviewer itself. It is used by its dependency - the @nextcloud/webpack-vue-config.
- If
@nextcloud/webpack-vue-configupdates, for example, to useminimizer-webpack-plugin- it will break again. - If somebody checks the list of dependencies, it can be found that this one is never imported by the app and accidentally removed
The proper fix should be on the library side:
Member
Author
There was a problem hiding this comment.
This dependency isn't used directly by the
files_pdfvieweritself. It is used by its dependency - the@nextcloud/webpack-vue-config.
It is... or what am I missing? 🤔
files_pdfviewer/webpack.config.js
Line 8 in c0f94ce
ShGKme
approved these changes
Aug 8, 2026
Member
Author
|
/compile |
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
danxuliu
marked this pull request as ready for review
August 8, 2026 21:04
This was referenced Aug 8, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
terser-webpack-pluginwas already an implicit dependency, but now it is made explicit to ensure that the build process will not break if the implicit dependency is removed.This could happen with an update to webpack >= 5.108.0, as it replaced
terser-webpack-pluginwithminimizer-webpack-plugin. However, note that even ifterser-webpack-pluginwas also replaced withminimizer-webpack-pluginin webpack.config.js in the PDF viewer the build could still break, as the latestwebpack-vue-configversion (7.0.3) also uses both webpack >= 5.108.0 and terser-webpack-plugin without depending on the later.