Set SourceMap to false to fix UI in MCR builds (#12175)

* Set sourceMap to false

Signed-off-by: Alison Burgess <alburgess@microsoft.com>

* add sourcemap=false to package.json build

Signed-off-by: Alison Burgess <alburgess@microsoft.com>

* set sourcemap to true in tsconfig

Signed-off-by: Alison Burgess <alburgess@microsoft.com>

---------

Signed-off-by: Alison Burgess <alburgess@microsoft.com>
Co-authored-by: Alison Burgess <alburgess@microsoft.com>
This commit is contained in:
Alison 2023-03-23 14:25:48 -07:00 committed by GitHub
parent edc8e75c40
commit 3ac49d4ae2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@
"name": "prometheus-io",
"private": true,
"scripts": {
"build": "bash build_ui.sh --all",
"build": "GENERATE_SOURCEMAP=false bash build_ui.sh --all",
"build:module": "bash build_ui.sh --build-module",
"start": "npm run start -w react-app",
"test": "npm run test --workspaces",