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
{{ message }}
This repository was archived by the owner on Dec 18, 2024. It is now read-only.
fix: update normalize-path to use ECMAScript compliant default import
The `normalize-path` package was previously imported via a namespace import.
However, the ECMAScript specification returns an exotic namespace object from
namespace imports which can never be a function. As a result a namespace import
can not be called. Since the import is directly called it must be imported As
a default import to be ECMAScript compliant. TypeScript by default allows the
non-compliant form even though it can result in runtime errors. The TypeScript
`esModuleInterop` option (recommended by TypeScript) causes TypeScript to error
on non-compliant usage and ensures the correct code is emitted so that the code
can be executed and/or bundled in an ESM environment.
0 commit comments