mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
[WIP] migrate entrypoints to ts
This commit is contained in:
parent
7328ec3415
commit
0aa9a665b8
|
|
@ -1,5 +1,5 @@
|
|||
{% capture entry %}{% if page.layout and layout.jsEntry %}{{ layout.jsEntry }}{% elsif page.jsEntry %}{{ page.jsEntry }}{% else %}default{% endif %}{% endcapture %}
|
||||
{% vite_javascript_tag {{ entry }} %}
|
||||
{% vite_typescript_tag {{ entry }} %}
|
||||
<script nomodule>
|
||||
(function() {
|
||||
var check = document.createElement('script');
|
||||
|
|
@ -22,7 +22,7 @@
|
|||
}());
|
||||
</script>
|
||||
<script src="{% vite_asset_path /vite/legacy-polyfills-legacy %}" crossorigin="anonymous" id="vite-legacy-polyfill" nomodule></script>
|
||||
{% capture legacyFile %}{% vite_asset_path {{ entry }}-legacy.js %}{% endcapture %}
|
||||
{% capture legacyFile %}{% vite_asset_path {{ entry }}-legacy.ts %}{% endcapture %}
|
||||
<script nomodule defer>System.import({{ legacyFile | jsonify }});</script>
|
||||
<script dummytype="application/javascript" type="module">
|
||||
(function(){
|
||||
|
|
|
|||
Loading…
Reference in New Issue