Describe the bug
js.liquid assets, which reference other assets via asset_url, are not automatically updated when referenced assets are modified.
To Reproduce
Steps to reproduce the behavior:
create js module asset/a.js.liquid with exported function fooBar
create js module asset/b.js.liquid and import asset.js.liquid via import { fooBar } from "{{ 'a.js' | asset_url }}"
deploy a.js.liquid and b.js.liquid
modify and redeploy a.js.liquid
notice b.js.liquid has not been updated; consequently the import url to a.js.liquid is stale.
Expected behavior
js.liquid assets, which reference other js.liquid assets via asset_url, should be updated when referenced assets are modified. this issue appears to be isolated to js.liquid files. for example, you can reference image assets within css.liquid files via url({{ 'image.png' | asset_url }}). if you then modify image.png the css.liquid file is automatically updated with the new url.
Environment:
OS: debian 10
Themekit version: ThemeKit 1.2.0 linux/amd64
Editor: vim
Additional context
i am not certain if this is a themekit issue, server side issue, or expected behavior. any insight would be appreciated. thanks.
Describe the bug js.liquid assets, which reference other assets via
asset_url
, are not automatically updated when referenced assets are modified.To Reproduce Steps to reproduce the behavior:
fooBar
import { fooBar } from "{{ 'a.js' | asset_url }}"
Expected behavior js.liquid assets, which reference other js.liquid assets via
asset_url
, should be updated when referenced assets are modified. this issue appears to be isolated to js.liquid files. for example, you can reference image assets within css.liquid files viaurl({{ 'image.png' | asset_url }})
. if you then modify image.png the css.liquid file is automatically updated with the new url.Environment:
Additional context i am not certain if this is a themekit issue, server side issue, or expected behavior. any insight would be appreciated. thanks.