-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
chore: add webpack v5 support, run webpack-defaults #317
Conversation
package.json
Outdated
"defaults": "webpack-defaults" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"peerDependencies": { | ||
"less": "^2.3.1 || ^3.0.0", | ||
"webpack": "^2.0.0 || ^3.0.0 || ^4.0.0" | ||
"webpack": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0" |
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.
Let's do it ^4.0.0 || ^5.0.0
lessFixturePath('basic.less'), | ||
].sort() | ||
); | ||
expect(dependencies).toContain(lessFixturePath('import.less')); |
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.
webpack 5 adds more dependencies, so we need to check whether or not the loader has added them into the array, rather than the whole array equalling a fixed set of dependencies
audit problem, jest still has old acorn version, so ignore it |
This PR contains a:
Motivation / Use-Case
Run
webpack-defaults
and validate webpack 5 compatibility, updating tests to passBreaking Changes
N/A