From 970b3eb73741fdcf722b6360322aa896c34e7978 Mon Sep 17 00:00:00 2001 From: Sam Macbeth Date: Thu, 13 Jul 2023 12:59:19 +0200 Subject: [PATCH] Only ship sourcemaps in dev builds (#2110) --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 78381d5b48..661af5dbe0 100755 --- a/Makefile +++ b/Makefile @@ -174,10 +174,11 @@ BROWSERIFY_GLOBAL_TARGETS += $(shell find node_modules/@duckduckgo/ -maxdepth 1 BROWSERIFY_BIN = node_modules/.bin/browserify BROWSERIFY = $(BROWSERIFY_BIN) -t babelify -t [ babelify --global --only [ $(BROWSERIFY_GLOBAL_TARGETS) ] --plugins [ "./scripts/rewrite-meta" ] --presets [ @babel/preset-env ] ] -ESBUILD = node_modules/.bin/esbuild --bundle --target=firefox91,chrome92 --define:BUILD_TARGET=\"$(browser)\" --sourcemap +ESBUILD = node_modules/.bin/esbuild --bundle --target=firefox91,chrome92 --define:BUILD_TARGET=\"$(browser)\" # Ensure sourcemaps are included for the bundles during development. ifeq ($(type),dev) BROWSERIFY += -d + ESBUILD += --sourcemap endif ## Extension background/serviceworker script.