Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace committed Apr 29, 2024
1 parent 5bb07ca commit 0e3a39d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/tailwindcss/src/css-parser.bench.ts
@@ -1,7 +1,6 @@
import { readFileSync } from 'node:fs'
import { bench } from 'vitest'
import * as CSS from './css-parser'
import { TrackLocations } from './track-locations'

const currentFolder = new URL('..', import.meta.url).pathname
const cssFile = readFileSync(currentFolder + './preflight.css', 'utf-8')
Expand All @@ -11,5 +10,5 @@ bench('css-parser on preflight.css', () => {
})

bench('CSS with sourcemaps', () => {
CSS.parse(input, new TrackLocations())
CSS.parse(cssFile, true)
})

0 comments on commit 0e3a39d

Please sign in to comment.