-
Notifications
You must be signed in to change notification settings - Fork 495
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
fix: adjust module resolution behavior #1152
Conversation
dfddf8b
to
b60ad15
Compare
Safari browser on macOS is unable to connect with websocket with these changes in place. The reason is unknown at this time, and it may be related to a bug/s in web3 beta.34. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious. If a user had 3.2 and eject its webpack.config and then updates to 4, will his webpack be "bad"? I mean, will it break for him/her?
@jrainville yes, the user would need to re-eject and re-customize |
1c2a0fa
to
8ac173d
Compare
Ok, yeah. |
Good idea! |
8ac173d
to
3ee3e86
Compare
73d5a72
to
f10e025
Compare
Include yarn's global path when modifying `NODE_PATH` since dependencies are deduped when a package is installed globally with yarn, which is different from npm's behavior. Fix webpack resolution by listing relative `'node_modules'` in `resolve/Loader:{modules:[...]}`. This ensures that dependecies' dependecies are resolved correctly when webpack builds a DApp. Remove the invocation of `.catch()` on a subscription object which lacks that method.
3ee3e86
to
4c39452
Compare
Include yarn's global path when modifying
NODE_PATH
since dependencies are deduped when a package is installed globally with yarn, which is different from npm's behavior.Fix webpack resolution by listing relative
'node_modules'
inresolve/Loader:{modules:[...]}
. This ensures that dependecies' dependecies are resolved correctly when webpack builds a DApp.Remove the invocation of
.catch()
on a subscription object which lacks that method.