diff --git a/bundle-config-loader.ts b/bundle-config-loader.ts index cd4c981b..eed8a515 100644 --- a/bundle-config-loader.ts +++ b/bundle-config-loader.ts @@ -62,6 +62,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} `; }