Skip to content

Commit

Permalink
Allow blocks or block for block directories
Browse files Browse the repository at this point in the history
  • Loading branch information
tlovett1 committed Jun 7, 2022
1 parent b64744c commit 038cd2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/toolkit/config/webpack/output.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = ({
if (pathData.chunk.name === 'runtime') {
return 'fast-refresh/hmr-runtime.js';
}
return buildFiles[pathData.chunk.name].match(/\/blocks\//)
return buildFiles[pathData.chunk.name].match(/\/blocks?\//)
? filenames.block
: filenames.js;
},
Expand Down

0 comments on commit 038cd2f

Please sign in to comment.