-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
test: support webpack5 #2553
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
test: support webpack5 #2553
Conversation
970fb5a
to
d84e0b3
Compare
Codecov Report
@@ Coverage Diff @@
## v4 #2553 +/- ##
=======================================
Coverage 93.36% 93.36%
=======================================
Files 34 34
Lines 1327 1327
Branches 375 375
=======================================
Hits 1239 1239
Misses 85 85
Partials 3 3
Continue to review full report at Codecov.
|
d84e0b3
to
bd17de4
Compare
bd17de4
to
056ca06
Compare
|
||
const webpack = require('webpack'); | ||
|
||
const isWebpack5 = webpack.version[0] === '5'; |
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.
should this have a try-catch around it, or have all versions of webpack had a .version
value?
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.
yes, webpack4 and webpack5 have version
function and we don't take care of less than v4 so it's okay.
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.
Oh, didn't see that this is just being used for test files
For Bugs and Features; did you add new tests?
Updated.
Motivation / Use-Case
Fixed some tests to support webpack5.
Need to merge this pr asap.
Breaking Changes
Additional Info