preact-transitioning icon indicating copy to clipboard operation
preact-transitioning copied to clipboard

Fix types resolution under modern module settings

Open kenany opened this issue 2 years ago • 0 comments

The TypeScript types could not be resolved when importing the package under modern module resolution settings like node16 or bundler. This patch resolves this issue by specifying "exports"."types" in addition to the existing "types".

Verified via https://arethetypeswrong.github.io/.

Before

2023-05-18-02-43-01

After

2023-05-18-03-16-34

kenany avatar May 18 '23 03:05 kenany