Home / File/ index.ts — tailwindcss Source File

index.ts — tailwindcss Source File

Architecture documentation for index.ts, a typescript file in the tailwindcss codebase. 3 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  053a1720_4def_9dd0_2fcc_5c8d2739f15d["index.ts"]
  8a0c5151_23cc_8e52_a43f_4b6b9c7d2706["env.ts"]
  053a1720_4def_9dd0_2fcc_5c8d2739f15d --> 8a0c5151_23cc_8e52_a43f_4b6b9c7d2706
  e4678476_089a_67ea_0736_1746fce3e551["node:module"]
  053a1720_4def_9dd0_2fcc_5c8d2739f15d --> e4678476_089a_67ea_0736_1746fce3e551
  8454872a_1bfa_3cb3_db8f_6d2e7e422a55["node:url"]
  053a1720_4def_9dd0_2fcc_5c8d2739f15d --> 8454872a_1bfa_3cb3_db8f_6d2e7e422a55
  style 053a1720_4def_9dd0_2fcc_5c8d2739f15d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import * as Module from 'node:module'
import { pathToFileURL } from 'node:url'
import * as env from './env'
export * from './compile'
export * from './instrumentation'
export * from './normalize-path'
export * from './optimize'
export * from './source-maps'
export { env }

// In Bun, ESM modules will also populate `require.cache`, so the module hook is
// not necessary.
if (!process.versions.bun) {
  let localRequire = Module.createRequire(import.meta.url)

  // `Module#register` was added in Node v18.19.0 and v20.6.0
  //
  // Not calling it means that while ESM dependencies don't get reloaded, the
  // actual included files will because they cache bust directly via `?id=…`
  Module.register?.(pathToFileURL(localRequire.resolve('@tailwindcss/node/esm-cache-loader')))
}

Domain

Dependencies

Frequently Asked Questions

What does index.ts do?
index.ts is a source file in the tailwindcss codebase, written in typescript. It belongs to the NodeServer domain.
What does index.ts depend on?
index.ts imports 3 module(s): env.ts, node:module, node:url.
Where is index.ts in the architecture?
index.ts is located at packages/@tailwindcss-node/src/index.ts (domain: NodeServer, directory: packages/@tailwindcss-node/src).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free