Closed TrySound closed 5 years ago
Hi @jquense. Pinging you in case you missed this :)
If the tree shaking works i'd be fine with a single main export version and forgo the cherry-pick tooling since it's really just two public imports here the HOC and hook.
Cool. Yeah, treeshaking will work with only functions.
Your babel config produces this things which should be development only
I'll take a look, i think it's jsut a configuration issue. need to update the preset
@jquense Got it. Your config requires NODE_ENV=production
everywhere.
@jquense Could you publish new version?
Friendly ping @jquense :)
@jquense Ooops. It should be major release. We did breaking change. import uncontrollable from 'uncontrollable' -> import { uncontrollable } from 'uncontrollable' import useUncontrolled from 'uncontrollable/hooks' -> import { useUncontrolled } from 'uncontrollable'
I (hopefully) tweaked build output to avoid the breaking change. you can still cherry-pick useUncontrolled
from uncontrolled/hook
it just won't work correctly in the esm case, which should be ok since we didn't have esm support before?
I'm not suggesting folks should cherry pick, but I think as back compat thing it is ok
Ah, cool. Didn't notice :)
@jquense Though you didn't provide default export for uncontrollable. So this is still breaking change.
First bug report https://github.com/intljusticemission/react-big-calendar/issues/1358
I suggest to rerelease v6.1.0 and release master as v7
same issue here
@chengjia0807 Try uncontrollable 6.2.2
sorry folks, should be good now.
In this diff I added esm support with the help of cherry-pick package and added babel helpers.