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
Meta: Clean up webpack config file #4201
Conversation
@fregante can you update webpack too? I tried updating and I was unable to build |
@@ -0,0 +1,65 @@ | |||
/// <reference types="../source/globals" /> |
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.
Unrelated question. Why is this needed?
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.
Don't ask me!
I think I tried moving globals
to the root and use it there but it didn't work…
Does build need to be added here? If yes, once your at it |
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.
Untested but looks good.
Want to regenerate the lock?
It’s ok for now since only select dev dependencies have been updated, we don’t have to do it every time. |
I got burned from this so many times. I wish I would know the reason, but since we switched to npm 15 every time I do an update if I don't delete and start over, 💥. Probably has to do with my machine. 🤷 |
Yeah it does happen but I supposed that if it works on CI it works for everyone. Usually they're peer dependency errors where babel stuff got updated partially and it's not fully compatible across versions. |
Tested both build and watch |
Me too :) Just a heads up I really learned from this PR. How you put the code together so simply and understandable. I look at the code and I think to myself "ya maybe one day..." Side Note: When do you sleep?! |
I recently moved across 12 timezones. I might have normalized my sleep schedule for now 😂 |
I was wondering! |
This extracts code and checks unrelated to the build to its own file.
Ideally, separately, the actual checks would be completely separate from webpack. They'd require this same file, but they wouldn't throw errors.