mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
### What? We can use codspeed for profiling the build performance, considering that these apps are very small. ### Why? We need an e2e benchmark.
14 lines
274 B
TypeScript
14 lines
274 B
TypeScript
import * as React from 'react'
|
|
import { codeToHtml } from 'shiki'
|
|
|
|
const code = 'const a = 1' // input code
|
|
|
|
export default async function Home() {
|
|
const html = await codeToHtml(code, {
|
|
lang: 'javascript',
|
|
theme: 'vitesse-dark',
|
|
})
|
|
|
|
return <pre>{html}</pre>
|
|
}
|