11ty / eleventy

A simpler site generator. Transforms a directory of templates (of varying types) into HTML.

Home Page:https://www.11ty.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dependencies inside 11ty.js JavaScript templates are cached and don’t apply changes

zachleat opened this issue · comments

If you modify a dependency, it needs to delete the upstream template from this cache:

if (inputPath in this.instances) {

Also this isn’t clearing the upstream template require cache

this.watchTargets.clearRequireCacheFor(queue);

(Also confirmed changes in those two places were sufficient to apply changes to Salma’s project here)

Shipping with 2.0.1. You can npm install to the GitHub commit locally for now!

just fyi 2.0.1-alpha.2 has this as well