diff options
Diffstat (limited to 'bundle/scripts')
-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)`) |