use tinyld heavy

This commit is contained in:
fly_mc 2024-10-17 23:43:41 +08:00
parent b786a698c7
commit e9e08b2ec2
4 changed files with 4 additions and 4 deletions

View file

@ -29,7 +29,7 @@ const externalPackages = [
name: 'tinyld',
match: /^tinyld$/,
path(): string {
return `https://cdn.jsdelivr.net/npm/tinyld@${packageInfo.dependencies.tinyld}/dist/tinyld.normal.node.mjs`
return `https://cdn.jsdelivr.net/npm/tinyld@${packageInfo.dependencies.tinyld}/dist/tinyld.heavy.node.mjs`
},
},
];

View file

@ -67,7 +67,7 @@
"three": "0.169.0",
"throttle-debounce": "5.0.2",
"tinycolor2": "1.6.0",
"tinyld": "^1.3.4",
"tinyld/heavy": "^1.3.4",
"tsc-alias": "1.8.10",
"tsconfig-paths": "4.2.0",
"typescript": "5.6.2",

View file

@ -3,7 +3,7 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { detect } from 'tinyld';
import { detect } from 'tinyld/heavy';
import * as mfm from 'mfm-js';
export default function detectLanguage(text: string): string {

View file

@ -31,7 +31,7 @@ const externalPackages = [
name: 'tinyld',
match: /^tinyld$/,
path(): string {
return `https://cdn.jsdelivr.net/npm/tinyld@${packageInfo.dependencies.tinyld}/dist/tinyld.normal.node.mjs`
return `https://cdn.jsdelivr.net/npm/tinyld@${packageInfo.dependencies.tinyld}/dist/tinyld.heavy.node.mjs`
},
},
];