Skip to content
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

Merged
merged 4 commits into from
Mar 13, 2020

Conversation

ryanclark
Copy link
Collaborator

This PR contains a:

  • bugfix
  • new feature
  • code refactor
  • test update
  • typo fix
  • metadata update

Motivation / Use-Case

Run webpack-defaults and validate webpack 5 compatibility, updating tests to pass

Breaking Changes

N/A

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"
Copy link
Member

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'));
Copy link
Collaborator Author

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

@alexander-akait
Copy link
Member

audit problem, jest still has old acorn version, so ignore it

@alexander-akait alexander-akait merged commit f0b42b4 into webpack-contrib:master Mar 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants