When the runtime already exposes a native globalThis.Temporal, the native
implementation is returned as-is and the polyfill is never loaded. Otherwise
temporal-polyfill is loaded lazily via a dynamic import() and its exports
are returned.
This function never mutates any globals. If you want polyfill-style global
installation, use installTemporal instead.
Load the Temporal API as a ponyfill.
When the runtime already exposes a native
globalThis.Temporal, the native implementation is returned as-is and the polyfill is never loaded. Otherwisetemporal-polyfillis loaded lazily via a dynamicimport()and its exports are returned.This function never mutates any globals. If you want polyfill-style global installation, use
installTemporalinstead.