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

bug: add failing test for hashSalt in prod mode (realContentHash) #778

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wejendorp
Copy link

@wejendorp wejendorp commented Jun 30, 2021

This PR contains a:

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

Motivation / Use-Case

We noticed a bug with our bundles after adding salt values to the build.

Setting output.hashSalt together with optimization.realContentHash (e.g. prod mode)
results in wrong urls for asset-modules, resulting in broken bundles.

The added test seems to be minimum to reproduce. For context (sanity check), the naming issue
does not happen if the asset module is referenced from a js module instead.

Breaking Changes

None

Additional Info

This PR is just a bug report in the form of a failing test. I hope it can be useful to someone.

Setting output.hashSalt together with optimization.realContentHash (e.g. prod mode)
results in wrong urls for asset-modules, resulting in broken bundles.

Added test seems to be minimum to reproduce.
@codecov
Copy link

codecov bot commented Jul 1, 2021

Codecov Report

Merging #778 (b506919) into master (794b602) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #778   +/-   ##
=======================================
  Coverage   92.04%   92.04%           
=======================================
  Files           6        6           
  Lines         704      704           
  Branches      170      170           
=======================================
  Hits          648      648           
  Misses         53       53           
  Partials        3        3           

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 794b602...b506919. Read the comment docs.

@alexander-akait
Copy link
Member

@wejendorp what is mini-css-extract-version?

@alexander-akait
Copy link
Member

Yep, bug, we will try to fix it in near future

@wejendorp
Copy link
Author

Yep, bug, we will try to fix it in near future

Thank you for verifying @alexander-akait, let me know if I can help or anything.

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