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 HMR options being ignored (fixes #106) #107

Conversation

ivan-aksamentov
Copy link

@ivan-aksamentov ivan-aksamentov commented Sep 28, 2018

options.reloadAll had no effect, because they were incorrectly copied into the webpack's loader.options and could never reach hotModuleReplacement.js. This commit fixes the copy site, allowing for options to pass through. Fixes #106

`options.reloadAll` had no effect, because they were incorrectly copied into the webpack's loader.options and could never reach `hotModuleReplacement.js`. This commit fixes the copy site, allowing for options to pass through. Fixes faceyspacey#106
@ScriptedAlchemy ScriptedAlchemy merged commit 331907c into faceyspacey:hmr-multi-instance Oct 1, 2018
@ScriptedAlchemy
Copy link
Collaborator

3.1.2-beta.7

ScriptedAlchemy added a commit that referenced this pull request Oct 2, 2018
* fix(index.js): Improved HMR detection multi instance collisions addressed

Merging a PR which improved upon my initial code which allowed the plugin to automatically hot
reload. With the help of React Static, we are able to fix a bug that appeared when building out
build toolchains. This bug causes the pugin to have two seperate context references within webpack
and ends up passing incorrect references to the wrong instance. Deceptivally simple solution was
naming the context key myself.

* fix(nested-loaders-hmr): Fix n-depth nested loader usage where HMR fails (#103)

HMR doesn't work when loaders are nested

* fix(nested-loaders-hmr): Fix n-depth nested loader usage where HMR fails (#103)

HMR doesn't work when loaders are nested

* feat(HMR):Adding the ability to enable hot options.

 Like reload all, or css moduels CSS Modules option

* use throw error, not console error

* use throw error, not console error

* fixing error thrown by empty options object

* Fix HMR options being ignored (fixes #106) (#107)

`options.reloadAll` had no effect, because they were incorrectly copied into the webpack's loader.options and could never reach `hotModuleReplacement.js`. This commit fixes the copy site, allowing for options to pass through. Fixes #106

* changed context string to match webpack conventions

* version bump

* perp for release
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