helix

https://github.com/Lokeh/helix
MorongÖa 2020-07-22T06:05:02.343100Z

@lilactown Trying out the helix.experimental.refresh which requires `react-refresh`. How do I exclude it from my production build? 

MorongÖa 2020-07-22T06:05:46.343300Z

Uncaught Error: React Refresh runtime should not be included in the production bundle.

dominicm 2020-07-22T06:29:56.344700Z

If you don't require it in your production build, then you won't get that error. We solve this problem by using preloads.

MorongÖa 2020-07-22T07:01:23.345400Z

@dominicm. Thank you. I do have it in my preloads, but it's still sneaking in somehow

MorongÖa 2020-07-22T07:01:47.345600Z

:preloads       [helix.experimental.refresh]

dominicm 2020-07-22T08:09:59.346300Z

@mmakgaba did you disable refresh for the production build?

dominicm 2020-07-22T08:10:10.346600Z

As in, the parameters to helix

MorongÖa 2020-07-22T08:44:08.347800Z

Nope. That I did not. How exactly does that work. Is there a tag? We use figwheel.

dominicm 2020-07-22T08:45:17.348300Z

@mmakgaba I did it using goog.DEBUG

MorongÖa 2020-07-22T08:47:50.348700Z

Oh nice. Awesome. Thank you so much. I see the light

lilactown 2020-07-22T16:54:57.348900Z

yeah. I should probably just bake that in

MorongÖa 2020-07-23T08:17:46.349300Z

That would be awesome.