'Passing options to js compiler on meteor
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
Solution 1:[1]
Looks like what you are referring to is
https://guide.meteor.com/build-tool.html#typescript. Accordingly, your file
needs to be called tsconfig.json.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Christian Fritz |
