Add Help & Documentation system under Settings

This commit is contained in:
2026-03-12 17:33:42 +00:00
parent 88fce35e84
commit 96c3fdd836
3472 changed files with 1368684 additions and 10 deletions

46
node_modules/tailwindcss/src/lib/load-config.ts generated vendored Normal file
View File

@@ -0,0 +1,46 @@
import jitiFactory from 'jiti'
import { transform } from 'sucrase'
import { Config } from '../../types/config'
let jiti: ReturnType<typeof jitiFactory> | 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<typeof jitiFactory>) {
jiti = _jiti()
}
function lazyJiti() {
return (
jiti ??
(jiti = jitiFactory(__filename, {
interopDefault: true,
transform: (opts) => {
// Sucrase can't transform import.meta so we have to use Babel
if (opts.source.includes('import.meta')) {
return require('jiti/dist/babel.js')(opts)
}
return transform(opts.source, {
transforms: ['typescript', 'imports'],
})
},
}))
)
}
export function loadConfig(path: string): Config {
let config = (function () {
if (!path) return {}
try {
return require(path)
} catch {
return lazyJiti()(path)
}
})()
return config.default ?? config
}