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
let's say I have a module in my project at: ./MyModule.ts
./MyModule.ts
I would like to have it auto imported from anywhere within my project using a relative path, for example:
from ./OtherModule.ts as:
./OtherModule.ts
import * as MyModule from './MyModule'
and from ./nested/OtherModule.ts as:
./nested/OtherModule.ts
import * as MyModule from '../MyModule'
Currently If I configure the plugin with:
"namespaces": { "MyModule": { "importPath": "./MyModule" } }
the imports always use the literal './MyModule' regardless of where I import from
'./MyModule'
The text was updated successfully, but these errors were encountered:
I think you can resolve it easier and don't wait the feature just add alias to paths: "~/*": "src"
"~/*": "src"
"namespaces": { "MyModule": { "importPath": "~/lib/my-module" } }
I didn't check it, but maybe it will works and helps you :)
Sorry, something went wrong.
No branches or pull requests
let's say I have a module in my project at:
./MyModule.ts
I would like to have it auto imported from anywhere within my project using a relative path, for example:
from
./OtherModule.ts
as:and from
./nested/OtherModule.ts
as:Currently If I configure the plugin with:
the imports always use the literal
'./MyModule'
regardless of where I import fromThe text was updated successfully, but these errors were encountered: