chore(js): remove vite legacy build

This commit is contained in:
Paul Chavard 2024-03-04 16:35:09 +01:00
parent 659600adba
commit d44822cc1c
No known key found for this signature in database
10 changed files with 4 additions and 112 deletions

View file

@ -48,12 +48,5 @@ Turbo.session.drive = false;
// Expose globals
window.DS = window.DS || DS;
// enable legacy mode of DSFR when vite is not detectde as modern browser
window.addEventListener('load', function () {
if (!window.__vite_is_modern_browser) {
window.dsfr.internals.legacy.setLegacy();
}
});
import('../shared/track/matomo');
import('../shared/track/sentry');