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

Commit

Permalink
fix: auto accept new or deleted files (#972)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Vakrilov authored and dtopuzov committed Jul 10, 2019
1 parent f48bd8c commit bd893ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bundle-config-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ const loader: loader.Loader = function (source, map) {
${hmr}
const context = require.context("~/", true, ${registerModules});
global.registerWebpackModules(context);
if (module.hot) {
module.hot.accept(context.id, () => {
console.log("HMR: Accept module '" + context.id + "' from '" + module.id + "'");
});
}
${source}
`;
}
Expand Down

0 comments on commit bd893ce

Please sign in to comment.