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

better support for webpack 5 #595

Merged
merged 5 commits into from
Oct 2, 2020
Merged

better support for webpack 5 #595

merged 5 commits into from
Oct 2, 2020

Conversation

sokra
Copy link
Member

@sokra sokra commented Sep 29, 2020

This PR contains a:

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

Motivation / Use-Case

better support for webpack 5

Breaking Changes

none, as webpack 5 support is experimental,

but it's notable that you must no longer pass the hmr option when using webpack 5, as this is automatically inferred as it's using the webpack 5 HMR integration

Additional Info

update manual test cases
update CssModule for webpack 5 (to avoid deprecation)
clean up inconsistency in loader
using filenameTemplate is incorrect
It would point to a .js filename.
remove hmr option for webpack 5 (now automatically)
fix/update test cases
@codecov
Copy link

codecov bot commented Sep 29, 2020

Codecov Report

Merging #595 into master will decrease coverage by 3.20%.
The diff coverage is 83.83%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #595      +/-   ##
==========================================
- Coverage   91.16%   87.95%   -3.21%     
==========================================
  Files           9       10       +1     
  Lines         543      598      +55     
  Branches      145      156      +11     
==========================================
+ Hits          495      526      +31     
- Misses         44       69      +25     
+ Partials        4        3       -1     
Impacted Files Coverage Δ
src/index.js 91.07% <72.22%> (+1.02%) ⬆️
src/CssLoadingRuntimeModule.js 96.77% <96.77%> (ø)
src/CssModule.js 62.68% <100.00%> (-35.56%) ⬇️
src/loader.js 90.74% <100.00%> (+0.08%) ⬆️

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 bb09d75...ec23c39. Read the comment docs.

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.

None yet

2 participants