Skip to content

Remove the unminified Vue UMD bundle - #463

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

Remove the unminified Vue UMD bundle#463
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
LoginLdap.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 5842a46 into prepare6x Aug 6, 2026
12 checks passed
@sgiehl
sgiehl deleted the remove-unminified-vue-umd branch August 6, 2026 10:37
sgiehl added a commit that referenced this pull request Aug 9, 2026
Matomo's Vue build no longer emits <Plugin>.umd.js. Only the minified
LoginLdap.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 added a commit that referenced this pull request Aug 10, 2026
* Prepare for Matomo 6

Bump plugin version to 6.0.0 and require Matomo >=6.0.0-b1,<7.0.0-b1.

* Run tests on same PHP versions as core (8.1, 8.5)

* Rebuild Vue dist files with the Vite build for Matomo 6 & fix ESLint violations (#439)

* Rebuild Vue dist files with the Vite build for Matomo 6

* Rebuild Vue dist files for Vue 3.5

* Export LoginLdap state interfaces for declaration emit (TS4082)

* Run plugin tests against MySQL 8.0 and MariaDB 10.6 (#444)

* Run plugin tests against MySQL 8.0 and MariaDB 10.6

The workflow inherited the shared action's MySQL 5.7 default, which is below
Matomo's new minimum. Pin the database-backed jobs to the supported floor:
PluginTests now runs a MySQL 8.0 + MariaDB 10.6 matrix, and the UI/JS jobs run
on MySQL 8.0.

* Only upload plugin test artifacts for the MySQL matrix leg

PluginTests runs a MySQL + MariaDB matrix; the upload-artifacts condition
matched both legs and uploaded twice. Restrict the upload to the MySQL leg.

* Update expected UI screenshots for the new headless Chrome (Node 24 / Puppeteer 24) (#447)

* Update expected UI screenshots for the new headless Chrome (Node 24 / Puppeteer 24)

* Run the plugin UI tests on Node 24

Match the Node 24 / Puppeteer 24 screenshot-testing stack; the UI job was still pinned to Node 16.

* Drop registration of removed core variables.less (#454)

Core PR "Prune dead and deprecated LESS variables" (matomo-org/matomo#24925)
deletes plugins/Login/stylesheets/variables.less. Registering a file that no
longer exists makes stylesheet merging throw "The ui asset with 'href' = ...
is not readable", which broke every view- or email-rendering test of this
plugin. Nothing here used @login-section-background, so the line can simply go.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>

* Update UI screenshots (#451)

Teal brand screenshots on 6.x-dev plugin base; synced from matomo-org/matomo run 30405694397.

* Remove the unminified Vue UMD bundle (#463)

Matomo's Vue build no longer emits <Plugin>.umd.js. Only the minified
LoginLdap.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.

* Use the matomo6_* PHP version aliases in the test workflow [ignore_release]

* Raise PHPStan phpVersion to 8.1 and prune stale excludePaths [ignore_release]

* Add changelog entry for Matomo 6 compatibility [ignore_release]

* Replace assertRegExp with assertMatchesRegularExpression for PHPUnit 9 [ignore_release]

* Rebuild Vue dist after restacking on 6.x-dev [ignore_release]

* Correct the LDAP connection property type for PHP 8.1 [ignore_release]

* Update admin page screenshot for Matomo 6 and the restacked 5.x changes [ignore_release]

---------

Co-authored-by: Thomas ZILLIOX <thomas@zilliox.me>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
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