Home / File/ css-parser.bench.ts — tailwindcss Source File

css-parser.bench.ts — tailwindcss Source File

Architecture documentation for css-parser.bench.ts, a typescript file in the tailwindcss codebase. 4 imports, 0 dependents.

File typescript Oxide 4 imports

Entity Profile

Dependency Diagram

graph LR
  8a9de484_88c1_a12e_b558_87cc8e5223df["css-parser.bench.ts"]
  8be42ab2_7e92_957a_da93_ffe4c7d161fe["css-parser.ts"]
  8a9de484_88c1_a12e_b558_87cc8e5223df --> 8be42ab2_7e92_957a_da93_ffe4c7d161fe
  9c72d32d_a535_69d4_565b_b620ce2eaae1["node:fs"]
  8a9de484_88c1_a12e_b558_87cc8e5223df --> 9c72d32d_a535_69d4_565b_b620ce2eaae1
  8454872a_1bfa_3cb3_db8f_6d2e7e422a55["node:url"]
  8a9de484_88c1_a12e_b558_87cc8e5223df --> 8454872a_1bfa_3cb3_db8f_6d2e7e422a55
  f1e05e5f_c1b2_a3f5_b2e8_3317b9243ac3["vitest"]
  8a9de484_88c1_a12e_b558_87cc8e5223df --> f1e05e5f_c1b2_a3f5_b2e8_3317b9243ac3
  style 8a9de484_88c1_a12e_b558_87cc8e5223df fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { readFileSync } from 'node:fs'
import { fileURLToPath } from 'node:url'

import { bench } from 'vitest'
import * as CSS from './css-parser.ts'

const currentFolder = fileURLToPath(new URL('..', import.meta.url))
const cssFile = readFileSync(currentFolder + './preflight.css', 'utf-8')

bench('css-parser on preflight.css', () => {
  CSS.parse(cssFile)
})

bench('CSS with sourcemaps', () => {
  CSS.parse(cssFile, { from: 'input.css' })
})

Domain

Dependencies

Frequently Asked Questions

What does css-parser.bench.ts do?
css-parser.bench.ts is a source file in the tailwindcss codebase, written in typescript. It belongs to the Oxide domain.
What does css-parser.bench.ts depend on?
css-parser.bench.ts imports 4 module(s): css-parser.ts, node:fs, node:url, vitest.
Where is css-parser.bench.ts in the architecture?
css-parser.bench.ts is located at packages/tailwindcss/src/css-parser.bench.ts (domain: Oxide, directory: packages/tailwindcss/src).

Analyze Your Own Codebase

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

Try Supermodel Free