mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-06-23 19:11:35 +00:00
Upgraded jquery to 4.0.0
This commit is contained in:
parent
b4cf5b57fa
commit
22f23d9c82
4 changed files with 19 additions and 12 deletions
|
|
@ -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()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue