eleventy icon indicating copy to clipboard operation
eleventy copied to clipboard

Edge Functions and // fetch() is supported natively by Deno!

Open stevenmilstein opened this issue 3 years ago • 0 comments

After trying to import node-fetch to an Edge Function, I eventually stumbled upon:

// fetch() is supported natively by Deno! in edge-functions-examples/image-external.ts at b50cb0b330c6ea730887bdba6501777196ac2791 · netlify/edge-functions-examples

I certainly got lucky on that one! But what if I was trying to import another package? It looked like adding the package to edge-functions-import-map.json, or import_map.json would be the way to go, but they get generated whenever netlify dev is run.

Is there a way to import other npm packages?

stevenmilstein avatar Jul 15 '22 15:07 stevenmilstein