Home / File/ index.bench.ts — tailwindcss Source File

index.bench.ts — tailwindcss Source File

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

File typescript 3 imports

Entity Profile

Dependency Diagram

graph LR
  74a2247d_bff7_ebd4_ebc7_fff689960e9e["index.bench.ts"]
  5a22a82e_ea42_a956_7900_a189873ab04d["oxide"]
  74a2247d_bff7_ebd4_ebc7_fff689960e9e --> 5a22a82e_ea42_a956_7900_a189873ab04d
  f1e05e5f_c1b2_a3f5_b2e8_3317b9243ac3["vitest"]
  74a2247d_bff7_ebd4_ebc7_fff689960e9e --> f1e05e5f_c1b2_a3f5_b2e8_3317b9243ac3
  4a833a47_de88_b79a_24ac_de077593f60a["."]
  74a2247d_bff7_ebd4_ebc7_fff689960e9e --> 4a833a47_de88_b79a_24ac_de077593f60a
  style 74a2247d_bff7_ebd4_ebc7_fff689960e9e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Scanner } from '@tailwindcss/oxide'
import { bench } from 'vitest'
import { compile } from '.'

// FOLDER=path/to/folder vitest bench
const root = process.env.FOLDER || process.cwd()
const css = String.raw

bench('compile', async () => {
  let scanner = new Scanner({ sources: [{ base: root, pattern: '**/*', negated: true }] })
  let candidates = scanner.scan()

  let { build } = await compile(css`
    @tailwind utilities;
  `)

  build(candidates)
})

Dependencies

  • .
  • oxide
  • vitest

Frequently Asked Questions

What does index.bench.ts do?
index.bench.ts is a source file in the tailwindcss codebase, written in typescript.
What does index.bench.ts depend on?
index.bench.ts imports 3 module(s): ., oxide, vitest.
Where is index.bench.ts in the architecture?
index.bench.ts is located at packages/tailwindcss/src/index.bench.ts (directory: packages/tailwindcss/src).

Analyze Your Own Codebase

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

Try Supermodel Free