Skip to content

Replace uglify-js scripts with @rollup/plugin-terser#10041

Merged
jonkoops merged 1 commit into
Leaflet:mainfrom
jonkoops:terser
Dec 30, 2025
Merged

Replace uglify-js scripts with @rollup/plugin-terser#10041
jonkoops merged 1 commit into
Leaflet:mainfrom
jonkoops:terser

Conversation

@jonkoops

Copy link
Copy Markdown
Collaborator

Replaces the minification scripts using uglify-js with the official @rollup/plugin-terser package, reducing the complexity of the scripts, and speeding up the build. Cleans up the Rollup configuration so it is less verbose by eliminating options that can safely be removed in order to fall to defaults, and by placing common options in shared defaults.

Additionally, the static asset plugin is now only used for the first output, ensuring assets are only emitted once for the entire build.

Signed-off-by: Jon Koops <jonkoops@gmail.com>
@jonkoops

Copy link
Copy Markdown
Collaborator Author

I'm going to merge this in as a rapid fire of a couple or PRs related to the build system, if there are any comments let me know, and I will address them in another PR.

@jonkoops jonkoops merged commit c5feaf4 into Leaflet:main Dec 30, 2025
16 checks passed
@jonkoops jonkoops deleted the terser branch December 30, 2025 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant