From d30b952ad59e8978b22616797287fbb0fbfb332f Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Fri, 10 May 2024 17:42:08 -0500 Subject: [PATCH] eleventy.reset Needs to run before config resets. --- src/Eleventy.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Eleventy.js b/src/Eleventy.js index ddd4ee118..7c7be271c 100644 --- a/src/Eleventy.js +++ b/src/Eleventy.js @@ -852,9 +852,10 @@ Arguments: // reset and reload global configuration if (isResetConfig) { - await this.resetConfig(); // important: run this before config resets otherwise the handlers will disappear. await this.config.events.emit("eleventy.reset"); + + await this.resetConfig(); } await this.restart();