From 0d290223b7279b60f24a7d6fc83db0b7ef4919f2 Mon Sep 17 00:00:00 2001 From: Hunter Miller Date: Tue, 15 Mar 2022 10:23:49 -0500 Subject: [PATCH] interface: fixing babel config --- pkg/interface/babel.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/interface/babel.config.js b/pkg/interface/babel.config.js index c495a101c..5c221c81b 100644 --- a/pkg/interface/babel.config.js +++ b/pkg/interface/babel.config.js @@ -5,6 +5,6 @@ module.exports = { '@babel/plugin-proposal-object-rest-spread', '@babel/plugin-proposal-optional-chaining', '@babel/plugin-proposal-class-properties', - 'react-refresh/babel' + process.env.NODE_ENV !== 'production' && 'react-refresh/babel' ] };