-
Notifications
You must be signed in to change notification settings - Fork 79
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
Support module aliases #113
Comments
On a related note I am interested in trying this out on my project but alongside this particular problem (we use |
@osdiab Hi, what are you using to alias
This is already tracked in #70. |
My company basically relies on
For imports internal to these packages, that covers our use case! EDIT: for imports across subpackages, ie from API to common package, we rely on |
Thank you! I've added Yarn workspaces and TSC's |
In our projects we make heavy use of flow's module.name_mapper and also babel's module alias configuration. This lets us make imports like this
import SideNav from 'modules/SideNav';
.Then in .flowconfig we have
module.name_mapper='^modules/\(.*\)$' -> '<PROJECT_ROOT>/src/modules/\1'
But this doesn't work in destiny as they aren't relative paths and the graph can't be built. I don't know if this issue becomes irrelevant when using destiny or not, but it does make it harder to start using it.
The text was updated successfully, but these errors were encountered: