silverwolf-x/project / packages /next /src /server /lib /install-code-frame.ts
silverwolf-x's picture
download
raw
641 Bytes
/**
* Installs code frame rendering support by injecting the renderer into patch-error-inspect.
* This uses dependency injection to avoid hard dependencies on native bindings in runtime code.
*
* Should be called early in dev/build initialization, after native bindings are loaded.
*/
export function installCodeFrameSupport(): void {
const { setCodeFrameRenderer } =
require('../patch-error-inspect') as typeof import('../patch-error-inspect')
const { getOriginalCodeFrame } =
require('../../next-devtools/server/shared') as typeof import('../../next-devtools/server/shared')
setCodeFrameRenderer(getOriginalCodeFrame)
}

Xet Storage Details

Size:
641 Bytes
·
Xet hash:
0b1bbfd1f6655ef41549df7705b1983325de57b127b3a50d2cb20ebc431d2440

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.