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 1ee4f1b9_e59b_57be_c019_31a05219d060["index.ts"] e9df710b_baf8_da14_76dd_1e58ee266e35["env.ts"] 1ee4f1b9_e59b_57be_c019_31a05219d060 --> e9df710b_baf8_da14_76dd_1e58ee266e35 acca0d4d_d5a0_546f_e935_ba836aa528c6["node:module"] 1ee4f1b9_e59b_57be_c019_31a05219d060 --> acca0d4d_d5a0_546f_e935_ba836aa528c6 83f4eb5c_a623_9c4e_b3f7_d95e77d40d82["node:url"] 1ee4f1b9_e59b_57be_c019_31a05219d060 --> 83f4eb5c_a623_9c4e_b3f7_d95e77d40d82 style 1ee4f1b9_e59b_57be_c019_31a05219d060 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
- env.ts
- node:module
- node:url
Source
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 NodeBridge 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: NodeBridge, 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