fix: lazy init local inference runtime in router instead of app start (#8656)

This commit is contained in:
Lifei Zhou
2026-04-27 13:16:53 +10:00
committed by GitHub
parent 10f23a9c4d
commit 8014adf982
14 changed files with 391 additions and 22 deletions
+10 -1
View File
@@ -16,7 +16,16 @@ const tmpFile = path.join(os.tmpdir(), 'en.i18n-check.json');
execFileSync(
process.execPath,
[formatjs, 'extract', 'src/**/*.{ts,tsx}', '--out-file', tmpFile, '--flatten'],
[
formatjs,
'extract',
'src/**/*.{ts,tsx}',
'--ignore',
'**/*.d.ts',
'--out-file',
tmpFile,
'--flatten',
],
{ stdio: 'inherit', cwd: projectDir }
);