From 91cebb78f0e9b0d6967381a03fd64639396e45b0 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Thu, 25 Apr 2024 17:33:33 +0700 Subject: [PATCH] Add ADDITIONAL CODE block --- build.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.ts b/build.ts index 0442750..20c7bfd 100644 --- a/build.ts +++ b/build.ts @@ -17,6 +17,9 @@ const postProcess = (str: string): string => { // Replace "globalThis." with "var"; str = str.replaceAll('globalThis.', 'var '); + // Add ADDITIONAL CODE block + str = str.replace('var DEFAULT_FLAGS', '\n/* ADDITIONAL CODE */\n\nvar DEFAULT_FLAGS'); + return str; }