Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
fix error when using a "withOptions" plugin
Brad Cornes <bradlc41@gmail.com>
3 years ago
1 changed files, 3 additions(+), 0 deletions(-)
M src/server.ts -> src/server.ts
diff --git a/src/server.ts b/src/server.ts
index 36ecf7301138031e65f98346043fc47147587e49..86deab99d626a6d771805db871a522bb12b58c24 100644
--- a/src/server.ts
+++ b/src/server.ts
@@ -586,6 +586,9 @@       // inject JIT `matchUtilities` function
       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) {