-
-
Notifications
You must be signed in to change notification settings - Fork 27
Description
I'm playing around with updating to version 2.0 of eleventy-plugin-rss. (I'm on Eleventy 3.0.0-alpha.13.)
I have a podcast plugin which I've written, which imports and adds eleventy-plugin-rss. That podcast plugin is imported and added to the main config file. I also have a nunjucks template which uses the filters supplied by eleventy-plugin-rss.
All this worked fine with eleventy-plugin-rss v1.x. With eleventy-plugin-rss v2.0, the filters don't get added to the main config.
[11ty] 1. Having trouble rendering njk template ./podcast.njk (via TemplateContentRenderError)
[11ty] 2. (./podcast.njk)
[11ty] Error: filter not found: dateToRfc3339 (via Template render error)
However, if I add the podcast plugin to the main config file with { immediate: true }, everything works fine.
Here's a minimal repository illustrating the problem: https://github.com/nathan-bottomley/rss-test
I know that some changes have been made to the way plugin imports work, so I'm imagining that it's something to do with that. Having to add { immediate: true } isn't such an imposition: I'm just not sure if that's how things are meant to work.