This PR fixes a bug raised in #33 by swapping out usage of EleventyRenderPlugin.RenderManager for EleventyRenderPlugin.String which is the exported template render function.
EleventyRenderPlugin.RenderManager ignores the templateConfig value passed to it, instead choosing to use its own internal state. When 11ty runs in --watch mode that internal state becomes different to what 11ty provides via its eleventy.config event. This is likely because the interlinker plugin is using RenderManager in a way its not intended to be used.
Fortunatly the compile function that RenderManager.compile wraps is also exported, however oddly named as String. This PR replaces usage of the render manager with usage of that compile function and should fix the crashing bug reported in #33.
This PR fixes a bug raised in #33 by swapping out usage of
EleventyRenderPlugin.RenderManager
forEleventyRenderPlugin.String
which is the exported template render function.EleventyRenderPlugin.RenderManager
ignores thetemplateConfig
value passed to it, instead choosing to use its own internal state. When 11ty runs in--watch
mode that internal state becomes different to what 11ty provides via itseleventy.config
event. This is likely because the interlinker plugin is usingRenderManager
in a way its not intended to be used.Fortunatly the compile function that
RenderManager.compile
wraps is also exported, however oddly named asString
. This PR replaces usage of the render manager with usage of that compile function and should fix the crashing bug reported in #33.