Merged
Conversation
Prior to this change, yarn complained about missing peer dependencies. This was caused by postcss being included as a transcendent dependency, without being explicitly included.
Remove @babel/polyfill which is deprecated and redundant; polyfilling is already handled by @babel/preset-env with useBuiltIns and core-js 3
d9a9199 to
30523c8
Compare
The JS build toolchain has been migrated from browserify + babelify + watchify + terser to webpack + babel-loader. This eliminates several unmaintained or deprecated packages and resolves a Dependabot security alert for a vulnerable transitive dependency (elliptic 6.6.1), which was introduced via browserify and watchify. Removed packages: - browserify: largely unmaintained, last release Oct 2024, 346 open issues. Was the root cause of the elliptic vulnerability alert. - babelify: the browserify transform for Babel, no longer needed. - watchify: effectively unmaintained since Jan 2021. Also introduced elliptic via its own dependency chain. - terser: standalone minifier, now replaced by webpack's built-in TerserPlugin with equivalent compression settings. Added packages: - webpack + webpack-cli Replaces watchify and minification. - babel-loader: the webpack equivalent of babelify, connects webpack to the existing Babel configuration. The webpack.config.js mirrors the previous build behaviour: - Production mode outputs application.min.js with the same Terser compression settings as the old .terserrc.json Browser compatibility is preserved. Previously, Babel targets were set explicitly in .babelrc as ">0.25%". With webpack + babel-loader, Babel automatically reads the existing .browserslistrc file, so babel output should be similar to the old setup. .babelrc has been simplified accordingly
Use a cp commpand to prevent more js packages
30523c8 to
0ded8b9
Compare
kayjoosten
approved these changes
Mar 18, 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.
Resolves #1940