-
Notifications
You must be signed in to change notification settings - Fork 97
How to create an alias for a NPM package? #205
Comments
This is not something that You can do this in many ways in a node environment. There is a module to do it for you: https://www.npmjs.com/package/module-alias Or you can set it up as part of your babel config in your |
Thanks for the hint! |
Hi, I do not want to open extra ticket, but I think, that the proposed solution will not work in case I need to create an alias of npm package A to npm package B for the development environment. Background: I am trying to get the react-dom - hot-loader edition working, but I am still facing the infamous warning message. Basically I need to alias "react-dom" to "@hot-loader/react-dom", so I updated my .compilerc as follows:
Sadly this did not help. Then I found following issue stating:
Might this be a reason, the alias is not working as expected ? What can I do about this ? |
For my project, I need to create an alias called
react-native
that resolves toreact-native-web
. This is usually done in the webpack configuration - how is this possible with electron-compile?Thanks for your efforts put into electron-compile!
The text was updated successfully, but these errors were encountered: