EJS Templates, Environment Variables and Cache Invalidation #8573
Unanswered
sailerinteractive
asked this question in
General
Replies: 1 comment 3 replies
-
In the Some examples of other transformers: parcel/packages/transformers/js/src/JSTransformer.js Lines 534 to 536 in 59610c1 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Consider the following EJS file index.ejs.
Then i run parcel with:
When i run parcel again with a different value of SITE_LANG the transformer cache is not invalidated and the change is not reflected in the final output. What do i need to to do in order to have the cache invalidated when the environment variable changes. Is this something that needs to be implemented in the transformer plugin?
Im using parcel 2.7.0 and parcel-transformer-ejs 1.0.0
Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions