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.

Entity Profile

Dependency Diagram

graph LR
  df798a7e_d4c2_7ac6_7ab3_3155f0acf3af["css-parser.bench.ts"]
  54851997_7544_bab2_96ab_548e5f5df205["css-parser.ts"]
  df798a7e_d4c2_7ac6_7ab3_3155f0acf3af --> 54851997_7544_bab2_96ab_548e5f5df205
  6390fa3b_300d_6028_9e96_c869157db42d["node:fs"]
  df798a7e_d4c2_7ac6_7ab3_3155f0acf3af --> 6390fa3b_300d_6028_9e96_c869157db42d
  83f4eb5c_a623_9c4e_b3f7_d95e77d40d82["node:url"]
  df798a7e_d4c2_7ac6_7ab3_3155f0acf3af --> 83f4eb5c_a623_9c4e_b3f7_d95e77d40d82
  696bd648_5f24_1b59_8e8b_7a97a692869e["vitest"]
  df798a7e_d4c2_7ac6_7ab3_3155f0acf3af --> 696bd648_5f24_1b59_8e8b_7a97a692869e
  style df798a7e_d4c2_7ac6_7ab3_3155f0acf3af 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 OxideEngine 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: OxideEngine, directory: packages/tailwindcss/src).

Analyze Your Own Codebase

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

Try Supermodel Free