Fork me on GitHub
#helix
<
2020-07-22
>
MorongÖa06:07:02

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

MorongÖa06:07:46

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

dominicm06:07:56

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Öa07:07:23

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

MorongÖa07:07:47

:preloads       [helix.experimental.refresh]

dominicm08:07:59

@mmakgaba did you disable refresh for the production build?

dominicm08:07:10

As in, the parameters to helix

MorongÖa08:07:08

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

dominicm08:07:17

@mmakgaba I did it using goog.DEBUG

MorongÖa08:07:50

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

lilactown16:07:57

yeah. I should probably just bake that in

MorongÖa08:07:46

That would be awesome.