You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
I discovered an interesting edge case today and wanted to bring it up to the maintainers. I am not sure whether the solution is a code change or a documentation update, hence this post.
Description
Not accessing file.data() in compileStatic results in the file raw data being used rather than the compiled asset data.
Source of issue:
asset._wasProcessed is only set if asset.data() was called at least once.
I discovered an interesting edge case today and wanted to bring it up to the maintainers. I am not sure whether the solution is a code change or a documentation update, hence this post.
Description
Not accessing
file.data()
incompileStatic
results in the file raw data being used rather than the compiled asset data.Source of issue:
asset._wasProcessed
is only set ifasset.data()
was called at least once.See asset.js#83
Expected behavior
I expect that it should be sufficient that a compiler gets called on the file for it to be tracked as
processed
Example
Works
Does not work:
The text was updated successfully, but these errors were encountered: