Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

fix: auto accept new or deleted files #972

Merged
merged 1 commit into from
Jul 10, 2019

Conversation

vakrilov
Copy link
Contributor

@vakrilov vakrilov commented Jul 9, 2019

What is the current behavior?

Newly created or deleted files cause changes in ./ sync recursive ( ....)$ module (created by the require.context added bu bundle-config-loader). These changes cause app restart as they are not handled by HMR.

What is the new behavior?

Added hot.accept() for the ./ sync recursive ( ....)$ module just after it is added in the app-entry point (app.ts/js). This will accept hot-updates for it when files are added/deleted/renamed.

Note: If the modified files are required somewhere in the app they will still be handled by the regular HMR handling.

@cla-bot cla-bot bot added the cla: yes label Jul 9, 2019
@vakrilov
Copy link
Contributor Author

test package_version#rc

@vakrilov
Copy link
Contributor Author

test

@dtopuzov dtopuzov merged commit bd893ce into release Jul 10, 2019
@vakrilov vakrilov deleted the auto-accept-new-deleted-files branch July 10, 2019 08:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants