Skip to content

Commit f3f1f73

Browse files
committed
fix error when using a "withOptions" plugin
1 parent c98b2d2 commit f3f1f73

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/server.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,9 @@ async function createProjectService(
586586
if (Array.isArray(exports.plugins)) {
587587
userPlugins = exports.plugins
588588
exports.plugins = exports.plugins.map((plugin) => {
589+
if (plugin.__isOptionsFunction) {
590+
plugin = plugin()
591+
}
589592
if (typeof plugin === 'function') {
590593
let newPlugin = (...args) => {
591594
if (!args[0].matchUtilities) {

0 commit comments

Comments
 (0)