Skip to content

Remove the unminified Vue UMD bundle - #140

Merged
sgiehl merged 1 commit into
prepare6xfrom
remove-unminified-vue-umd
Aug 6, 2026
Merged

Remove the unminified Vue UMD bundle#140
sgiehl merged 1 commit into
prepare6xfrom
remove-unminified-vue-umd

Conversation

@sgiehl

@sgiehl sgiehl commented Aug 6, 2026

Copy link
Copy Markdown
Member

Description

Removes the unminified <Plugin>.umd.js Vue bundle, which is no longer built, and adds a .gitignore entry so it does not come back.

Matomo's Vue build used to run two full Vite passes per plugin, emitting an unminified <Plugin>.umd.js next to <Plugin>.umd.min.js. Only the minified bundle is ever served:

  • PluginUmdAssetFetcher::getUmdFileToUseForPlugin() and getAllPluginUmds() look exclusively for .umd.min.js.
  • Development mode uses .development.umd.js, produced by vue:build --watch and already gitignored.

The unminified pass was a leftover from Vue CLI, whose --target lib build emitted .common.js, .umd.js and .umd.min.js in one go. .common.js was gitignored away long ago; .umd.js survived only because it came for free.

Core change: matomo-org/matomo#25027. Once that lands, this file is no longer regenerated by vue:build.

Notes for review

  • Independent of core merge order — nothing reads .umd.js, and .umd.min.js is untouched, so this is safe to merge before or after the core PR.
  • No CI impact: this repository's workflows do not rebuild or diff Vue bundles.
  • The .gitignore pattern *.umd.js does not match *.umd.min.js.

Checklist

  • [✔] I have understood, reviewed, and tested all AI outputs before use
  • [✔] All AI instructions respect security, IP, and privacy rules

Matomo's Vue build no longer emits <Plugin>.umd.js. Only the minified
CustomVariables.umd.min.js is ever served: PluginUmdAssetFetcher looks exclusively for
.umd.min.js, and development mode uses the .development.umd.js produced by
vue:build --watch.

The unminified bundle was a leftover from Vue CLI, whose lib build emitted it
alongside the minified one for free. See matomo-org/matomo#25027.
@sgiehl
sgiehl merged commit a52e36b into prepare6x Aug 6, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant