-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
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
Replaces require to npm module #71
Comments
This problem is because of issue #63 |
The graphql directory does in fact not have a index file. |
pr #72 should add the functionality to disable the BaseUrl replacer with a simple tsconfig option. {
"compilerOptions": {
...
},
"tsc-alias": {
"replacers": {
"BaseUrl": {
"enabled": false
}
}
}
} |
I don't think just disabling |
Given the following typescript file...
with the following tsconfig...
tsc-alias modifies the imports like so:
I guess the
require('graphql')
is modified because there is a folder called "graphql" insrc/
right? Is there a way to prevent paths to npm packages from being modified?Here is a repo containing a jest test for this: https://github.com/she11sh0cked/tsc-alias-issue
The text was updated successfully, but these errors were encountered: