From efdf6f1551c3479e593f6ed6f06d62cc14380bcb Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Fri, 20 Sep 2024 06:22:04 +0200 Subject: [PATCH] build: enable bundling for utility scripts --- esbuild.config.js | 2 +- utils/svr_new.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/esbuild.config.js b/esbuild.config.js index 35a8fc4..74b28dc 100644 --- a/esbuild.config.js +++ b/esbuild.config.js @@ -200,7 +200,7 @@ esbuild esbuild .build({ entryPoints: utilFiles.map((filename) => "utils/" + filename), - bundle: false, + bundle: true, outdir: "dist", platform: "node", target: "es2017", diff --git a/utils/svr_new.js b/utils/svr_new.js index 5d0ff8b..d15e408 100644 --- a/utils/svr_new.js +++ b/utils/svr_new.js @@ -1 +1 @@ -require("./svr.js"); +require(__dirname + "/svr.js");