-
Notifications
You must be signed in to change notification settings - Fork 203
How can I create aliases for npm modules? #191
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
Comments
Hi @siddharthkp, this would be possible (although not without problems) if you applied the transform to the files inside Maybe you could manually add a "react" package to |
How can I do that?
This will work, probably my last option, if nothing else works |
It depends on the tool that you use to apply babel transforms. For example, in Webpack and Rollup just don't add |
I am using babel-register |
Thanks! This is helpful 😄 |
I tried to do this, but failed.
Something like this:
Any npm module (not just my code) that uses
react
, should getpreact-compat
.Is this something that is possible?
The text was updated successfully, but these errors were encountered: