refactor(rollup): use replace plugin before other plugins

This commit is contained in:
moklick
2020-10-23 14:06:31 +02:00
parent 269dfec535
commit 056e817031
3 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import React, { useMemo, CSSProperties, HTMLAttributes, MouseEvent, WheelEvent } from 'react';
import cc from 'classcat';
const nodeEnv: string = __ENV__ as string;
const nodeEnv: string = (typeof __ENV__ !== 'undefined' && __ENV__) as string;
if (nodeEnv !== 'production') {
const whyDidYouRender = require('@welldone-software/why-did-you-render');