Skip to content
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

How to resolve aliases via Typescript paths? #28

Open
davnicwil opened this issue Jun 7, 2021 · 0 comments
Open

How to resolve aliases via Typescript paths? #28

davnicwil opened this issue Jun 7, 2021 · 0 comments
Labels
question Further information is requested

Comments

@davnicwil
Copy link

davnicwil commented Jun 7, 2021

Thanks for this great plugin!

Is there a way to have it resolve aliases via the Typescript paths setting in tsconfig.json?

Out of the box, code that compiles fine with rescripts start does not compile with the setup described in the readme here (i.e. just CracoEsbuildPlugin configured in craco.config.js, nothing else) and craco start -- compilation fails on module resolution for any alias.

I noticed that esbuild itself theoretically has support for this (see here) though apparently not without the --bundle flag set. Is that the limitation here? Or is this something that needs to be configured in some particular way for craco?

@pradel pradel added the question Further information is requested label Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants