Optimize select2 import

This commit is contained in:
Antoine Bartuccio 2024-10-13 03:00:20 +02:00 committed by Bartuccio Antoine
parent 092ace8432
commit 40c623b202
2 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,9 @@ require("jquery-ui/ui/widgets/tabs.js");
require("jquery-ui/themes/base/all.css"); require("jquery-ui/themes/base/all.css");
// We ship select2 here, otherwise it will duplicate jquery everywhere we load it
import "select2";
/** /**
* Simple wrapper to solve shorten not being able on legacy pages * Simple wrapper to solve shorten not being able on legacy pages
* @param {string} selector to be passed to jQuery * @param {string} selector to be passed to jQuery

View File

@ -142,7 +142,6 @@
* </script> * </script>
*/ */
import "select2";
import type { import type {
AjaxOptions, AjaxOptions,
DataFormat, DataFormat,