WEB Signal 495
Safari 27 rebuilds its module loader to fully comply with top-level await
Safari 27 introduces a ground-up rewrite of its module loader to achieve full ECMAScript spec compliance for top-level await and resolve persistent initialization errors.
Developers can now use top-level await in Safari without encountering subtle module evaluation order bugs or initialization errors that previously broke dynamic imports. This also stabilizes ES modules as a whole in Safari, making them reliable for production use across all projects once Safari 27 ships.
Written by elseif from the cluster below · every claim links back to a sourceThe three things worth knowing
Safari 27 replaces its legacy WHATWG Loader proposal-based module loader with a rebuilt foundation aligned with the ECMAScript standard.
The rewrite fixes a bug where dynamic imports of modules using top-level await would resolve out of order and throw accessed before initialization errors.
Full spec compliance for top-level await and improved ES module stability are available now in Safari Technology Preview 251 and Safari 27 beta.
THE CLUSTER
↗