Skip to content

Commit

Permalink
fix: make loader injection respect virtual modules (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmmmwh committed Feb 28, 2022
1 parent 0b3c6a5 commit 0aa6a5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/injectRefreshLoader.js
Expand Up @@ -25,7 +25,7 @@ function injectRefreshLoader(moduleData, injectOptions) {

if (
// Include and exclude user-specified files
match(moduleData.resource) &&
match(moduleData.matchResource || moduleData.resource) &&
// Exclude files referenced as assets
!moduleData.type.includes('asset') &&
// Skip react-refresh and the plugin's runtime utils to prevent self-referencing -
Expand Down

0 comments on commit 0aa6a5b

Please sign in to comment.