Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

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

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
…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.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants