MCPcopy Create free account
hub / github.com/dcastil/tailwind-merge / fallbackModuleCode

Function fallbackModuleCode

packages/plugin-core/src/generation.ts:239–243  ·  view source on GitHub ↗
(importSource: string)

Source from the content-addressed store, hash-verified

237 * Served for the runtime subpath when generation has never succeeded (the CSS is broken from the start, or a `@plugin` package is missing): the same default-config surface as a plugin's runtime fallback file. Once a generation has succeeded, later failures keep serving the last good module instead.
238 */
239export function fallbackModuleCode(importSource: string): string {
240 return `
241export { createTailwindMerge, extendTailwindMerge, getDefaultConfig as getConfig, mergeConfigs, twJoin, twMerge, validators } from '${importSource}'
242`
243}

Callers 4

tailwindMergeLoaderFunction · 0.90
config.test.tsFile · 0.90
loadFunction · 0.90
generation.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected