We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getAbsoluteMappingEntries
lib/mapping-entry.js
version: 3.11.0 problem: the getAbsoluteMappingEntries in lib/mapping-entry.js can't resolve absolute path.
ex: I use eslint which imported this package. when I config tsconfig.json as below
{ "compilerOptions": { "paths": { "@/*": [ "src/*", "/var/fold1/src/*" ], } } }
The path /var/fold1/src/* would be resolved as /.../var/fold1/src/* rather than /var/fold1/src/*
/var/fold1/src/*
/.../var/fold1/src/*
Causes as below
absolutePaths.push({ pattern: key, paths: paths[key].map(function (pathToResolve) { return path.join(absoluteBaseUrl, pathToResolve); }), });
path.join would not resolve absolute path correctly
path.join
The text was updated successfully, but these errors were encountered:
No branches or pull requests
version:
3.11.0
problem:
the
getAbsoluteMappingEntries
inlib/mapping-entry.js
can't resolve absolute path.ex:
I use eslint which imported this package.
when I config tsconfig.json as below
The path
/var/fold1/src/*
would be resolved as/.../var/fold1/src/*
rather than/var/fold1/src/*
Causes as below
path.join
would not resolve absolute path correctlyThe text was updated successfully, but these errors were encountered: