diff --git a/packages/toolkit/config/__tests__/__snapshots__/webpack-basic-config.js.snap b/packages/toolkit/config/__tests__/__snapshots__/webpack-basic-config.js.snap index 857b9fff..26517f90 100644 --- a/packages/toolkit/config/__tests__/__snapshots__/webpack-basic-config.js.snap +++ b/packages/toolkit/config/__tests__/__snapshots__/webpack-basic-config.js.snap @@ -315,7 +315,7 @@ Object { return 'fast-refresh/hmr-runtime.js'; } - return buildFiles[pathData.chunk.name].match(/\\/blocks\\//) ? filenames.block : filenames.js; + return buildFiles[pathData.chunk.name].match(/\\/blocks?\\//) ? filenames.block : filenames.js; }, "path": "/dist", }, @@ -1129,7 +1129,7 @@ Object { return 'fast-refresh/hmr-runtime.js'; } - return buildFiles[pathData.chunk.name].match(/\\/blocks\\//) ? filenames.block : filenames.js; + return buildFiles[pathData.chunk.name].match(/\\/blocks?\\//) ? filenames.block : filenames.js; }, "path": "/dist", }, diff --git a/packages/toolkit/config/__tests__/__snapshots__/webpack-cli-arguments.js.snap b/packages/toolkit/config/__tests__/__snapshots__/webpack-cli-arguments.js.snap index 0f81a316..b09ead24 100644 --- a/packages/toolkit/config/__tests__/__snapshots__/webpack-cli-arguments.js.snap +++ b/packages/toolkit/config/__tests__/__snapshots__/webpack-cli-arguments.js.snap @@ -332,7 +332,7 @@ Object { return 'fast-refresh/hmr-runtime.js'; } - return buildFiles[pathData.chunk.name].match(/\\/blocks\\//) ? filenames.block : filenames.js; + return buildFiles[pathData.chunk.name].match(/\\/blocks?\\//) ? filenames.block : filenames.js; }, "path": "/dist", }, @@ -507,7 +507,7 @@ Object { return 'fast-refresh/hmr-runtime.js'; } - return buildFiles[pathData.chunk.name].match(/\\/blocks\\//) ? filenames.block : filenames.js; + return buildFiles[pathData.chunk.name].match(/\\/blocks?\\//) ? filenames.block : filenames.js; }, "path": "/dist", }, @@ -682,7 +682,7 @@ Object { return 'fast-refresh/hmr-runtime.js'; } - return buildFiles[pathData.chunk.name].match(/\\/blocks\\//) ? filenames.block : filenames.js; + return buildFiles[pathData.chunk.name].match(/\\/blocks?\\//) ? filenames.block : filenames.js; }, "path": "/dist", }, diff --git a/packages/toolkit/config/__tests__/__snapshots__/webpack-fast-refresh.js.snap b/packages/toolkit/config/__tests__/__snapshots__/webpack-fast-refresh.js.snap index d862c958..bf186aac 100644 --- a/packages/toolkit/config/__tests__/__snapshots__/webpack-fast-refresh.js.snap +++ b/packages/toolkit/config/__tests__/__snapshots__/webpack-fast-refresh.js.snap @@ -145,7 +145,7 @@ Object { return 'fast-refresh/hmr-runtime.js'; } - return buildFiles[pathData.chunk.name].match(/\\/blocks\\//) ? filenames.block : filenames.js; + return buildFiles[pathData.chunk.name].match(/\\/blocks?\\//) ? filenames.block : filenames.js; }, "path": "/dist", },