Upgraded jquery to 4.0.0

This commit is contained in:
Jan Böhmer 2026-06-21 15:51:22 +02:00
parent b4cf5b57fa
commit 22f23d9c82
4 changed files with 19 additions and 12 deletions

View file

@ -119,7 +119,14 @@ Encore
// requires WebpackEncoreBundle 1.4 or higher
.enableIntegrityHashes(Encore.isProduction())
// uncomment if you're having problems with a jQuery plugin
// Force all jquery imports to the UMD build so webpack always receives the
// jQuery function directly instead of an ESM namespace object. Without this,
// webpack's ESM interop wraps jquery.module.js in a namespace
// { default, jQuery, $ } which has no .fn, crashing Bootstrap's
// defineJQueryPlugin when it tries to access $.fn.alert.
.addAliases({
'jquery': path.resolve(__dirname, 'node_modules/jquery/dist/jquery.js')
})
.autoProvidejQuery()