ianstormtaylor / react-values

A set of tiny React components for handling state with render props.
https://git.io/react-values
MIT License
1.01k stars 39 forks source link

Change main entry to dist #27

Open dy opened 6 years ago

dy commented 6 years ago

Hi @ianstormtaylor! Right now it is not convenient to use this library with babelify/browserify, since that uses ES6 export and requires global browserify transform. Changing main entry in package.json to dist fixes this problem, also that is well-established practice.

Appreciate your attention.

ianstormtaylor commented 6 years ago

Hey @dy, can you explain what the global transform is needed? I think the react-values.js file which package.main points to uses CommonJS requires?