Expose file url
#205
-
|
Is there a way I can expose the file url so I can write something like this in Perhaps we could emit an import map to make this possible.
<script type="module">
import { foo } from "{{ 'main.js' | asset_url }}"
</script> |
Beta Was this translation helpful? Give feedback.
Answered by
andyxmas
Nov 6, 2025
Replies: 1 comment 1 reply
-
|
Import maps perhaps? https://github.com/slavamak/vite-plugin-shopify-import-maps |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
dbzx10299
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Import maps perhaps? https://github.com/slavamak/vite-plugin-shopify-import-maps