eleventy
eleventy copied to clipboard
Edge Functions and // fetch() is supported natively by Deno!
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?