Skip to content

Conversation

@jgoz
Copy link

@jgoz jgoz commented Mar 8, 2024

Fixes #191
Closes #188
Closes #192

Enables compatibility with various TypeScript module resolution modes: https://www.typescriptlang.org/docs/handbook/modules/reference.html#packagejson-exports

Technically, you can avoid specifying "types" in an "exports" spec because TypeScript will attempt file extension substitution. However, in resolution modes that prefer the "import" condition, it will attempt to substitute the extension using the basename tinykeys.module and will not find anything.

The easiest fix is to specify "types" and avoid the substitution path.

Enables compatibility with TypeScript's "bundler" module resolution mode.
@JustPilz
Copy link

JustPilz commented May 2, 2024

@jamiebuilds
please merge this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Typescript types not resolving when using tsconfig with moduleResolution: "Bundler"

2 participants