From 09fe62d84cfe02a8f886df0e79ec6dd39a91c45f Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sun, 14 Jun 2026 15:17:49 +0100 Subject: [PATCH] refac: remove vendor imports from chat entry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit chat.bundle.min.js no longer bundles jQuery, jQuery UI, jquery-validation, jquery-validation-unobtrusive, showdown, or to-markdown. The application code (chat.js, comment.js) consumes them from window.$ / window.jQuery (provided by the layout's global scripts) or does not need them at all. Bundle size: 591 KB → 7.6 KB. NOTE: This commit does not touch any versioned file. The build/ directory and the .min.js outputs under wwwroot/js/ are gitignored. The bundle is regenerated by 'npm run build:js' (see INSTALL.md and the script 'build:js' in package.json). Build state is partially migrated: only chat is clean so far. Other bundles (core, dropzone, datetime, timepicker) still bundle jQuery — upcoming commits will clean them up too. Redundancy is harmless (the second jQuery load is a no-op override) but wasteful; full cleanup is the goal of this refac. Tested: dotnet test 11/11 green.