Revert "Merge pull request #7506 from betagouv/brutally_fix_dynamic_import"

Bad idea, new browser do not get js anymore because of the nomodule attribute
This commit is contained in:
simon lehericey 2022-06-29 17:30:15 +02:00
parent a9a198aad8
commit 683cb54cca

View file

@ -15,16 +15,9 @@
= vite_client_tag
= vite_react_refresh_tag
- if vite_legacy?
= vite_legacy_javascript_tag 'application'
- if administrateur_signed_in?
= vite_legacy_javascript_tag 'track-admin'
- else
= vite_javascript_tag 'application'
- if administrateur_signed_in?
= vite_javascript_tag 'track-admin'
= vite_javascript_tag 'application'
- if administrateur_signed_in?
= vite_javascript_tag 'track-admin'
= preload_link_tag(asset_url("Muli-Regular.woff2"))
= preload_link_tag(asset_url("Muli-Bold.woff2"))
@ -50,6 +43,9 @@
- if content_for?(:footer)
= content_for(:footer)
- if vite_legacy?
= vite_legacy_javascript_tag 'application'
= yield :charts_js
// Container for custom turbo-stream actions