Skip to content

Commit

Permalink
chore(gatsby): migrate webpack-hmr-hooks-patch to TypeScript (#22280)
Browse files Browse the repository at this point in the history
* chore(gatsby): migrate webpack-hmr-hooks-patch to TypeScript

* fix test

* add guard for webpack-hmr-hooks-patch

* add description for remaining webpack-hmr-hooks-patch as JS
  • Loading branch information
sasurau4 committed Mar 19, 2020
1 parent 101e322 commit 7d73604
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 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

Expand Down

0 comments on commit 7d73604

Please sign in to comment.