diff --git a/packages/scripts/CHANGELOG.md b/packages/scripts/CHANGELOG.md index f5d4b89bbb45b..5c373beb7cfa0 100644 --- a/packages/scripts/CHANGELOG.md +++ b/packages/scripts/CHANGELOG.md @@ -6,6 +6,10 @@ - Automatically copy PHP files located in the `src` folder and its subfolders to the output directory (`build` by default) ([#38715](https://github.com/WordPress/gutenberg/pull/38715)). +## 21.0.2 (2022-02-15) + +- Entry points are not detected in Windows OS ([#38781](https://github.com/WordPress/gutenberg/pull/38781)). + ## 21.0.1 (2022-02-11) ### Bug Fix diff --git a/packages/scripts/utils/config.js b/packages/scripts/utils/config.js index ba2966a15e19b..b8bc4861c1f8d 100644 --- a/packages/scripts/utils/config.js +++ b/packages/scripts/utils/config.js @@ -230,7 +230,8 @@ function getWebpackEntryPoints() { } const entryName = filepath .replace( extname( filepath ), '' ) - .replace( srcDirectory, '' ); + .replace( srcDirectory, '' ) + .replace( /\\/g, '/' ); // Detects the proper file extension used in the `src` directory. const [ entryFilepath ] = glob(