From f3f1f7341098771a4350cfadab3fe76d7112476a Mon Sep 17 00:00:00 2001 From: Brad Cornes Date: Sun, 9 May 2021 19:34:25 +0100 Subject: [PATCH] fix error when using a "withOptions" plugin --- src/server.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server.ts b/src/server.ts index 36ecf73..86deab9 100644 --- a/src/server.ts +++ b/src/server.ts @@ -586,6 +586,9 @@ async function createProjectService( if (Array.isArray(exports.plugins)) { userPlugins = exports.plugins exports.plugins = exports.plugins.map((plugin) => { + if (plugin.__isOptionsFunction) { + plugin = plugin() + } if (typeof plugin === 'function') { let newPlugin = (...args) => { if (!args[0].matchUtilities) {