From 2525da181bd8dd5a14ea6bb0d208a187d60adc53 Mon Sep 17 00:00:00 2001 From: Charley Wu Date: Tue, 25 Jan 2022 08:06:28 +0800 Subject: [PATCH] Disable source-map generation for mswjs - Fixes warnings: [Failed to parse source map from](https://github.com/mswjs/msw/issues/1070) - https://github.com/mswjs/msw/issues/1030 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b25fa83..0a92a99 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,8 @@ "version": "0.0.0", "private": true, "scripts": { - "start": "cross-env REACT_APP_MOCK=true react-scripts start", - "build": "react-scripts build", + "start": "cross-env REACT_APP_MOCK=true GENERATE_SOURCEMAP=false react-scripts start", + "build": "cross-env GENERATE_SOURCEMAP=false react-scripts build", "test": "react-scripts test", "test:coverage": "react-scripts test --coverage", "eject": "react-scripts eject",