You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: add CJS support to @netlify/runtime-utils to fix ERR_REQUIRE_ESM (#510)
@netlify/blobs is dual-format (CJS + ESM) and depends on @netlify/runtime-utils.
When the CJS build of @netlify/blobs is used (e.g., in Background Functions),
it tries to require() @netlify/runtime-utils, which was ESM-only, causing
ERR_REQUIRE_ESM errors at runtime.
This change makes @netlify/runtime-utils dual-format so it can be consumed
by both CJS and ESM contexts.
When @netlify/blobs becomes ESM-only in the future, we can remove CJS
support from @netlify/runtime-utils as well.
Fixes#437
0 commit comments