sindresorhus / is

Type check values
MIT License
1.68k stars 109 forks source link

Add main entry to package.json #198

Closed DucAnhPhi closed 1 year ago

DucAnhPhi commented 1 year ago
sindresorhus commented 1 year ago

without the main entry, the index file cannot always be found implicitly

exports is the modern way to define main entry. This package has the correct config. Any problems are caused by bundlers and other tools.

https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c

DucAnhPhi commented 1 year ago

thanks, good to know