We are adding a jsconfig
file to the root of a meteor project to add short hands form imports.
For instance instead of import UserMutations from '../../api/Users/mutations';
we would like to write import UserMutations from '@api/Users/mutations';
This is an example jsconfig file
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@api/*": ["api/*"],
}
}
}
When we add this our short hand imports recognized as npm
packages that are missing.
Any help is appreciated