Skip to content

Fix issue when multiple variables are exposed for the same request. #30

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

Merged
merged 1 commit into from
Feb 14, 2017

Conversation

gdborton
Copy link
Contributor

@gdborton gdborton commented Feb 14, 2017

The previous commit for more consistent hashes naively overwrote the
entire request, assuming there weren't additional loaders to be run
against the file. This modifies the changes to the request to only change
the path to the imported file rather than changing the entire
remainingRequest.

This is an attempt at fixing - #29

Also, I was worried that I might bork something else, so I created a repo here for quickly testing - https://github.com/gdborton/expose-loader-test

Verified

This commit was signed with the committer’s verified signature.
The previous commit for more consistent hashes naively overwrote the
entire request, assuming there weren't additional loaders to be run
against the file.  This modifies the changes to the request to only change
the path to the imported file rather than changing the entire
remainingRequest.
@joshwiens joshwiens self-assigned this Feb 14, 2017
@joshwiens joshwiens merged commit 7cdc8b9 into webpack-contrib:master Feb 14, 2017
joshwiens pushed a commit that referenced this pull request Feb 14, 2017

Verified

This commit was signed with the committer’s verified signature.
…sed for the same request. (#30)

The previous commit for more consistent hashes naively overwrote the
entire request, assuming there weren't additional loaders to be run
against the file.  This modifies the changes to the request to only change
the path to the imported file rather than changing the entire
remainingRequest.
@gdborton gdborton deleted the fix-multiple-exposures branch February 14, 2017 19:49
joshwiens pushed a commit that referenced this pull request Nov 18, 2017
…sed for the same request. (#30)

The previous commit for more consistent hashes naively overwrote the
entire request, assuming there weren't additional loaders to be run
against the file.  This modifies the changes to the request to only change
the path to the imported file rather than changing the entire
remainingRequest.
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