Automatically strip `debug` in production
A bunch of small changes to reduce overall bundle size, which ultimately impacted backward compatibility.
Changed
- Remove
IS_UNIQUEandDISPLAY_NAMEexports in favor of$uniqueand$displayNamekeys - Remove
debugsupport in favor ofprocess.env.NODE_ENV- This enables code stripping in production for Webpack and other bundlers and resulted in a 0.6kB bundle size reduction
- Remove
hashfunction customization- As far as I know no one has used it in production and it increases scope of the package (let me know if you are!)