Skip to content

Commit

Permalink
[fix] clean module name for refreshing
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip committed Apr 28, 2021
1 parent 51b5c27 commit 9c99f5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/xarc-app-dev/src/lib/app-dev-middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export class AppDevMiddleware {
if (!initialLoad && !_.isEmpty(data.refreshModules)) {
const { refreshed, failed } = data.refreshModules.reduce(
(agg, moduleName) => {
moduleName = moduleName.split("|")[0];
if (!moduleName.startsWith("webpack/runtime")) {
try {
const xarcOptions = loadXarcOptions();
Expand All @@ -78,7 +79,7 @@ export class AppDevMiddleware {
}

if (refreshed.length > 0) {
console.log(`Refreshed modules for hot reload: ${refreshed.join(", ")}`);
console.log(`Refreshed modules for hot reload`);
refreshAllSubApps();
refreshAllSubApps2();
}
Expand Down

0 comments on commit 9c99f5e

Please sign in to comment.