[WIP] migrate entrypoints to ts

This commit is contained in:
Miao Wang 2024-04-15 22:19:07 +08:00
parent 7328ec3415
commit 0aa9a665b8
9 changed files with 2 additions and 2 deletions

View File

@ -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(){