fix: refs #8698 update import path resolution to read jsconfig.json using fs
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
406b25103d
commit
455fd72db4
|
@ -1,6 +1,7 @@
|
|||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
const rootDir = process.cwd();
|
||||
import config from '../../../../jsconfig.json' with { type: 'json' };
|
||||
const config = JSON.parse(fs.readFileSync('jsconfig.json', 'utf-8'));
|
||||
const { paths, baseUrl } = config.compilerOptions;
|
||||
|
||||
function resolveImportPath(importPath, fileBase) {
|
||||
|
|
Loading…
Reference in New Issue