From d884e9bc843885b1d6bca999dbf8d1388b82562a Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Mon, 18 Dec 2023 13:50:21 -0500 Subject: [PATCH] Fix custom config loading in Standalone CLI (#12616) * Fix custom config loading in Standalone CLI * Update changelog --- CHANGELOG.md | 1 + src/lib/load-config.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb44a74c7..0da3bfa93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Fix support for container query utilities with arbitrary values ([#12534](https://github.com/tailwindlabs/tailwindcss/pull/12534)) +- Fix custom config loading in Standalone CLI ([#12616](https://github.com/tailwindlabs/tailwindcss/pull/12616)) ### Added diff --git a/src/lib/load-config.ts b/src/lib/load-config.ts index e879412a3..345b262e8 100644 --- a/src/lib/load-config.ts +++ b/src/lib/load-config.ts @@ -8,8 +8,8 @@ let jiti: ReturnType | null = null // @internal // This WILL be removed in some future release // If you rely on this your stuff WILL break -export function useCustomJiti(_jiti: ReturnType) { - jiti = _jiti +export function useCustomJiti(_jiti: () => ReturnType) { + jiti = _jiti() } function lazyJiti() {