Skip to content

chore: add webpack v5 support, run webpack-defaults#317

Merged
alexander-akait merged 4 commits into
webpack:masterfrom
ryanclark:webpack-v5
Mar 13, 2020
Merged

chore: add webpack v5 support, run webpack-defaults#317
alexander-akait merged 4 commits into
webpack:masterfrom
ryanclark:webpack-v5

Conversation

@ryanclark

Copy link
Copy Markdown
Contributor

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

Comment thread package.json Outdated
"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
Copy Markdown
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

Comment thread test/index.test.js
lessFixturePath('basic.less'),
].sort()
);
expect(dependencies).toContain(lessFixturePath('import.less'));

Copy link
Copy Markdown
Contributor 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
Copy Markdown
Member

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

@alexander-akait alexander-akait merged commit f0b42b4 into webpack: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

2 participants