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

Fix compatibility with webpack 5 #698

Merged
merged 20 commits into from
Feb 15, 2021

Conversation

alexander-akait
Copy link
Member

@alexander-akait alexander-akait commented Feb 9, 2021

This PR contains a:

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

Motivation / Use-Case

use compiler.webpack for better compatibility with webpack v5

fixes #668

Breaking Changes

No

Additional Info

No

@codecov
Copy link

codecov bot commented Feb 9, 2021

Codecov Report

Merging #698 (e15977f) into master (c4b375c) will increase coverage by 0.46%.
The diff coverage is 84.29%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #698      +/-   ##
==========================================
+ Coverage   88.93%   89.40%   +0.46%     
==========================================
  Files          11        6       -5     
  Lines         696      755      +59     
  Branches      194      227      +33     
==========================================
+ Hits          619      675      +56     
- Misses         74       77       +3     
  Partials        3        3              
Impacted Files Coverage Δ
src/index.js 87.33% <83.25%> (-4.57%) ⬇️
src/loader.js 92.19% <87.50%> (-0.43%) ⬇️
src/utils.js 91.42% <100.00%> (+2.96%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c4b375c...08f8e31. Read the comment docs.

@alexander-akait alexander-akait merged commit 9b6b8b3 into master Feb 15, 2021
@alexander-akait alexander-akait deleted the fix-compatibility-with-webpack-5 branch February 15, 2021 12:36

class MiniCssExtractPlugin {
static getCssModule(webpack) {
class CssModule extends webpack.Module {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

why i will get undefined;

"webpack": "5.15.0",
"webpack-build-notifier": "^2.1.1",
"webpack-cli": "^4.5.0",
"webpack-dev-server": "^3.11.2",
"webpack-merge": "^5.7.3"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please create reproducible test repo

@taejs
Copy link

taejs commented Jun 17, 2021

Hi. I think this commit cause this error.
stephencookdev/speed-measure-webpack-plugin#167

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.

Plugin crashes when using in a repo with webpack 4 and webpack 5
3 participants