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

Commit bd893ce

Browse files
Alexander Vakrilovdtopuzov
Alexander Vakrilov
authored andcommitted
fix: auto accept new or deleted files (#972)
1 parent f48bd8c commit bd893ce

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: bundle-config-loader.ts

+5
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ const loader: loader.Loader = function (source, map) {
7272
${hmr}
7373
const context = require.context("~/", true, ${registerModules});
7474
global.registerWebpackModules(context);
75+
if (module.hot) {
76+
module.hot.accept(context.id, () => {
77+
console.log("HMR: Accept module '" + context.id + "' from '" + module.id + "'");
78+
});
79+
}
7580
${source}
7681
`;
7782
}

0 commit comments

Comments
 (0)