diff --git a/packages/gatsby/src/utils/webpack-hmr-hooks-patch.js b/packages/gatsby/src/utils/webpack-hmr-hooks-patch.js index 169718284d486..7aca2012242c2 100644 --- a/packages/gatsby/src/utils/webpack-hmr-hooks-patch.js +++ b/packages/gatsby/src/utils/webpack-hmr-hooks-patch.js @@ -1,3 +1,7 @@ +/** + * This file should remain as JS because the migration to TypeScript break the patch. + * For more details, https://github.com/gatsbyjs/gatsby/pull/22280 + */ const originalFetch = global.fetch delete global.fetch