Repository navigation
build: drop vite-plugin-static-copy - #388
Merged
Merged
Conversation
vite-plugin-static-copy only copied src/viewer.js to js/viewer.js, and pulled in chokidar 3 with braces, which GHSA-vfj7-8cjw-p6xm affects in every version. A small inline plugin emits the file instead and watches it in watch mode. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This was referenced Oct 17, 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.
Follow-up to #387. The 3 high-severity
npm audititems left are one chain:vite-plugin-static-copy→chokidar3 →braces, affected by GHSA-vfj7-8cjw-p6xm in everybracesversion. The plugin's latest release (4.1.1) still useschokidar3, andnpm audit fix --forcewould downgrade it to 0.2.0.The plugin only copied
src/viewer.js(the script the editor iframe loads as is) tojs/viewer.js. A small inline Vite plugin now emits that file and watches it in watch mode, and the dependency is dropped.js/, andjs/viewer.jsis byte-identical tosrc/viewer.js.npm auditgoes from 15 vulnerabilities (3 high) to 12 (6 low, 6 moderate). The rest come from@nextcloud/vite-config(vite-plugin-dtsand the Node polyfills) and have no fix available.🤖 AI (if applicable)