We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 818692f commit 3c7073fCopy full SHA for 3c7073f
packages/tailwindcss/css-parser.bench.ts
@@ -0,0 +1,10 @@
1
+import { readFileSync } from 'node:fs'
2
+import { bench } from 'vitest'
3
+import * as CSS from './src/css-parser.ts'
4
+
5
+const currentFolder = new URL('.', import.meta.url).pathname
6
+const cssFile = readFileSync(currentFolder + './preflight.css', 'utf-8')
7
8
+bench('css-parser on preflight.css', () => {
9
+ CSS.parse(cssFile)
10
+})
0 commit comments