next.js
a09dc5f2 - Add @vercel/og to external server packages (#49944)

Commit
2 years ago
Add @vercel/og to external server packages (#49944) `@vercel/og` should also be treated as external package as precompiled one (x-ref: #48844) As it's ESModule, it could escalate the importee modules to become ESM as well, then `require()` won't be able to load the proper module, we need to switch to await the require result (just like **dynamic import**) for node module loader [slack thread](https://vercel.slack.com/archives/C03KAR5DCKC/p1683577269970609?thread_ts=1683569728.697039&cid=C03KAR5DCKC)
Author
Parents
Loading