mirror of
https://github.com/earendil-works/pi.git
synced 2026-06-18 15:54:04 +08:00
1ce870db1b
The previous fix (83b57924) replaced require.resolve() with bare
specifier fallbacks to avoid ERR_PACKAGE_PATH_NOT_EXPORTED for ESM-only
packages like pi-ai. However, bare specifiers are not valid jiti alias
targets, breaking extension loading in global npm installs.
Use import.meta.resolve() as the fallback instead. It respects the
"import" exports condition and returns a real file path.
1ce870db1b
ยท
2026-03-05 07:08:30 +01:00
History