Closed tswaters closed 7 months ago
Oh, turns out I need to pass cache: true
into the rollup config options, otherwise it'll use NO_CACHE implementation, and this.cache.get
calls will all return undefined. Interesting design... shame it's not mentioned in the changelog as far as I can tell.
This can be closed I think? Might be good to add a note to the readme.
I'm a dummy.... I was using v2.0.0 of rollup-plugin-html2 -- updating to version 4 and I don't see the same issue.
ERR, truly a dummy -- I tried it again under v4 w/out cache and didn't see the same problem... .never tried build.
Must pass cache: true
as a root rollup option for this to work properly.
In watch mode, seems to work OK.
In non-watch mode, I'm getting this error -
This is with 4.12.0 (previously was working on v2 and works fine there)
It looks like this line tries to cache whether the template is a file,
Later, in
generateBundle
function,this.cache.get("templateIsFile" /* templateIsFile */)
is returning undefined, so it thinks the providedtemplate
parameter is the string of the template instead of a file... I'm not sure when this changed but I'm trying to update dependencies and hit this issue.