Dependencies inside 11ty.js JavaScript templates are cached and don’t apply changes
zachleat opened this issue · comments
Zach Leatherman commented
If you modify a dependency, it needs to delete the upstream template from this cache:
eleventy/src/Engines/JavaScript.js
Line 21 in 05c6263
Zach Leatherman commented
Zach Leatherman commented
Also this isn’t clearing the upstream template require cache
Line 777 in 05c6263
(Also confirmed changes in those two places were sufficient to apply changes to Salma’s project here)
Zach Leatherman commented
Shipping with 2.0.1. You can npm install to the GitHub commit locally for now!
Zach Leatherman commented
just fyi 2.0.1-alpha.2
has this as well