Skip to content

Commit f172e36

Browse files
committed
fix(config): dedupe tailwind.config from configPaths, closes #949
1 parent f226a64 commit f172e36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/internal-context/load.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const createInternalContext = async (moduleOptions: ModuleOptions, nuxt = useNux
2323

2424
const resolveConfigs = <T extends Partial<TWConfig> | string | undefined>(configs: T | T[], nuxt = useNuxt()) =>
2525
((Array.isArray(configs) ? configs : [configs])
26-
.filter(Boolean)
26+
.filter((c): c is NonNullable<T> => Boolean(c) && c !== join(nuxt.options.rootDir, 'tailwind.config'))
2727
.map(async (config, idx, arr): Promise<ResolvedConfig | null> => {
2828
if (typeof config !== 'string') {
2929
const hasUnsafeProperty = checkUnsafeInlineConfig(config)

0 commit comments

Comments
 (0)