From 69b8841967dce375856c3607dbd6d9b8aaf9fe71 Mon Sep 17 00:00:00 2001 From: Anton Golub Date: Mon, 9 Dec 2024 23:07:40 +0300 Subject: [PATCH] fix: apply freezing to template object --- tslib.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tslib.js b/tslib.js index 5e12ace..7f67637 100644 --- a/tslib.js +++ b/tslib.js @@ -303,6 +303,7 @@ var __rewriteRelativeImportExtension; __makeTemplateObject = function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + if (Object.freeze) { Object.freeze(cooked); Object.freeze(raw) } return cooked; };