aboutsummaryrefslogtreecommitdiff
path: root/build.mjs
diff options
context:
space:
mode:
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}}`;