Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
provide corePlugins helper when running plugins
Brad Cornes <bradlc41@gmail.com>
4 years ago
1 changed files, 6 additions(+), 0 deletions(-)
M src/class-names/runPlugin.js -> src/class-names/runPlugin.js
diff --git a/src/class-names/runPlugin.js b/src/class-names/runPlugin.js
index dbdd2b5d9fe213987d842f7bd44223d2ee9bb490..118961e81b20134d8a2f6c5ee41122f03b88ed62 100644
--- a/src/class-names/runPlugin.js
+++ b/src/class-names/runPlugin.js
@@ -17,6 +17,12 @@       prefix: (x) => x,
       theme: (path, defaultValue) => dlv(config, `theme.${path}`, defaultValue),
       variants: () => [],
       config: (path, defaultValue) => dlv(config, path, defaultValue),
+      corePlugins: (path) => {
+        if (Array.isArray(config.corePlugins)) {
+          return config.corePlugins.includes(path)
+        }
+        return dlv(config, `corePlugins.${path}`, true)
+      },
       target: (path) => {
         if (typeof config.target === 'string') {
           return config.target === 'browserslist'