aboutsummaryrefslogtreecommitdiff
path: root/build.mjs
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-09-08 22:25:21 +0200
committerVendicated <vendicated@riseup.net>2022-09-08 22:25:21 +0200
commit6099179f0230e3c6eb449a2cd7f6a5c5d79201f2 (patch)
tree78d3eede2c9ca882481989523680de4c317032dd /build.mjs
parente52225304e47d92bf1b84f5a2c8e97ab57bd85a4 (diff)
downloadVencord-6099179f0230e3c6eb449a2cd7f6a5c5d79201f2.tar.gz
Vencord-6099179f0230e3c6eb449a2cd7f6a5c5d79201f2.tar.bz2
Vencord-6099179f0230e3c6eb449a2cd7f6a5c5d79201f2.zip
ViewIcons: Now opens icons in image viewer
Diffstat (limited to 'build.mjs')
-rwxr-xr-xbuild.mjs2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.mjs b/build.mjs
index 6bdeffa..c1ab3cf 100755
--- a/build.mjs
+++ b/build.mjs
@@ -48,7 +48,7 @@ const globPlugins = {
continue;
}
const mod = `__pluginMod${i}`;
- code += `import ${mod} from "./${files[i].replace(".ts", "")}";\n`;
+ code += `import ${mod} from "./${files[i].replace(/.tsx?$/, "")}";\n`;
obj += `[${mod}.name]: ${mod},`;
}
code += `export default {${obj}}`;