cli:update config to support tsx

This commit is contained in:
pengfei.zhou
2021-08-31 20:05:23 +08:00
committed by osborn
parent 7a0a2c6621
commit cde8d1726f
4 changed files with 21 additions and 18 deletions

View File

@@ -80,7 +80,7 @@ dirs.forEach((e) => {
readDirs(e, allFiles);
});
export default allFiles
.map((e) => e.replace(".ts", ""))
.map((e) => e.replace(/.tsx*/, ""))
.map((bundle) => {
return {
input: `build/${bundle}.js`,