From 1ffeedd887789aca345493a9602118e2ab0bea4b Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 9 Oct 2021 01:53:41 +0200 Subject: :bug: fix old node version --- bundle/scripts/build.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bundle') diff --git a/bundle/scripts/build.js b/bundle/scripts/build.js index 9939558d..c6a98b80 100644 --- a/bundle/scripts/build.js +++ b/bundle/scripts/build.js @@ -39,8 +39,8 @@ function transpileFiles() { let content = fs.readFileSync(file, { encoding: "utf8" }); console.log(file); content = content - .replaceAll( - `@fosscord/${part}`, + .replace( + new RegExp(`@fosscord/${part}`), path.relative(file, path.join(__dirname, "..", "..", part, "dist")).slice(3) ) .replace(importPart, `const $2 = require($5)`) -- cgit 1.4.1