This is a good helper for development mode, but does this code get removed from bundles or is a particular plugin needed to remove it? Seems like it would have to be removed since process is not available in the browser. What setting causes this to happen?
The webpack docs aren't really all that clear about what these options do, just giving vague references: https://webpack.js.org/concepts/targets/ and https://webpack.js.org/concepts/output/
if (process.env.NODE_ENV !== 'production') { if (typeof nextValue === 'undefined') { console.info(next); throw new Error('React Table: A reducer hook ☝️ just returned undefined! This is not allowed.'); } }