This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
Undocumented requirement for compileStatic
plugins.
#1760
Labels
compileStatic
plugins.
#1760
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: