Skip to content

Commit

Permalink
fix: not reloading on adding style/component files
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Aug 10, 2020
1 parent fb7c805 commit c0c3b25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loader/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ function getMissingDepRequire(resource: string, meta): string | false {
const templateFileName = getBasenameWithoutExt(resource);
return `require.context(".", false, /\\${path.sep}${
templateFileName === "index" ? "" : `${templateFileName}\\.`
}(?:${missingDeps.join("|")})\\.[^\\${path.sep}]+$/, "weak");`;
}(?:${missingDeps.join("|")})\\.[^\\${path.sep}]+$/);`;
}

return false;
Expand Down

0 comments on commit c0c3b25

Please sign in to comment.