Commit a7bf738
authored
shim
currently in our bundle we include the `next/dist/compiled/node-fetch` package,
this doesn't seem actually necessary and it introduces a good amount of unnecessary
code in our bundle, moreover it also causes a warning in the terminal (because of an
=== -0 comparison), the changes here replace the node-fetch code with a simply shim
that re-exports the native fetchnext/dist/compiled/node-fetch (#422)1 parent d3c6533 commit a7bf738
File tree
2 files changed
+6
-0
lines changed- packages/cloudflare/src/cli
- build
- templates/shims
2 files changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
107 | 112 | | |
108 | 113 | | |
109 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments