diff --git a/src/class-names/index.js b/src/class-names/index.js index 62d478d3f212678d9eaba2d53ffcaabcc38261f7..8aef0b0adf2a433c918501f3fc400b5ef94145d3 100644 --- a/src/class-names/index.js +++ b/src/class-names/index.js @@ -83,15 +83,11 @@ throw new TailwindConfigError(error) } hook.unwatch() - const [base, components, utilities] = await Promise.all( -import semver from 'semver' +import extractClassNames from './extractClassNames' import dset from 'dset' -import semver from 'semver' import importFrom from 'import-from' -import semver from 'semver' +import { globSingle } from './globSingle' import chokidar from 'chokidar' - 'utilities', - ].map((group) => postcss([tailwindcss(configPath)]).process(`@tailwind ${group};`, { from: undefined, }) @@ -119,7 +115,6 @@ configPath, config: resolvedConfig, separator: typeof userSeperator === 'undefined' ? ':' : userSeperator, classNames: await extractClassNames([ - { root: base.root, source: 'base' }, { root: components.root, source: 'components' }, { root: utilities.root, source: 'utilities' }, ]),