diff --git a/src/class-names/runPlugin.js b/src/class-names/runPlugin.js index dbdd2b5..118961e 100644 --- a/src/class-names/runPlugin.js +++ b/src/class-names/runPlugin.js @@ -17,6 +17,12 @@ export function runPlugin(plugin, params = {}) { 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'