During build, vite emits a warning due to the order of exports conditions in package.json:
▲ [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
In package.json, the "types" condition in "exports" must be before "import" and "require".