Skip to content

Commit 6cc2996

Browse files
committed
chore: try to use tsc output UMD but fail,microsoft/TypeScript#8436
1 parent ffc3ba6 commit 6cc2996

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

run-control/web-rig/profiles/library/config/typescript.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@
3131
"moduleKind": "commonjs",
3232
"outFolderName": "lib-commonjs"
3333
}
34+
/* 部分包需要提供umd格式,配置tsc额外输出umd各式 */
35+
/* 参考:https://rushstack.io/zh-cn/pages/heft_configs/typescript_json/ */
36+
/* 由于tsc的umd模式,无法输出window.xxxx形式,所以弃用tsc输出umd,改为使用vite(rollup)打包 */
37+
/* https://github.com/microsoft/TypeScript/issues/8436 */
38+
// {
39+
// "moduleKind": "umd",
40+
// "outFolderName": "lib-umd"
41+
// }
3442
],
3543

3644
/**

0 commit comments

Comments
 (0)