Replace typescript compiler with native tsgo compiler

This commit is contained in:
Jamie
2026-03-18 11:26:18 -07:00
committed by GitHub
parent 5e6af4708b
commit c90ca2b4e0
207 changed files with 1819 additions and 1270 deletions

View File

@@ -3,7 +3,7 @@
import React from 'react';
import LinkifyIt from 'linkify-it';
import LinkifyIt, { type Match as LinkifyItMatch } from 'linkify-it';
import type { RenderTextCallbackType } from '../../types/Util.std.js';
import {
@@ -335,7 +335,7 @@ export function Linkify(props: Props): React.JSX.Element {
const chunkData: Array<{
chunk: string;
matchData: ReadonlyArray<LinkifyIt.Match>;
matchData: ReadonlyArray<LinkifyItMatch>;
}> = splitByEmoji(text).map(({ type, value: chunk }) => {
if (type === 'text') {
return { chunk, matchData: linkify.match(chunk) || [] };