From 8440958bcf1611eab175e025dcdd6fc5f83588c0 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sun, 10 May 2020 13:38:58 +0200 Subject: [PATCH] Ensure that the `DEFINES` build target constants, in `gulpfile.js`, cannot be changed --- gulpfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 8fc5b44c8..eb58dfe83 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -90,7 +90,7 @@ var CSS_VARIABLES_CONFIG = { preserve: true, }; -var DEFINES = { +const DEFINES = Object.freeze({ PRODUCTION: true, SKIP_BABEL: true, TESTING: false, @@ -102,7 +102,7 @@ var DEFINES = { COMPONENTS: false, LIB: false, IMAGE_DECODERS: false, -}; +}); function transform(charEncoding, transformFunction) { return through.obj(function (vinylFile, enc, done) {