diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-09 01:53:41 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-09 01:53:41 +0200 |
commit | 509b2c3b71c7c95903f408c8a80b10281106cf9d (patch) | |
tree | 8fc83b6a673c6b40ca7c66eddf21bde89ab7b5e8 | |
parent | Merge branch 'master' of http://github.com/fosscord/fosscord-server (diff) | |
download | server-509b2c3b71c7c95903f408c8a80b10281106cf9d.tar.xz |
:bug: fix old node version
-rw-r--r-- | bundle/scripts/build.js | 4 |
1 files changed, 2 insertions, 2 deletions
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)`) |