fix: lazy init local inference runtime in router instead of app start (#8656)
This commit is contained in:
@@ -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 }
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user