https://github.com/topthinking/combine-ts
https://github.com/topthinking/combine-ts
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/topthinking/combine-ts
- Owner: Topthinking
- Created: 2019-08-21T07:15:01.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-30T05:58:02.000Z (over 6 years ago)
- Last Synced: 2025-04-05T18:52:24.424Z (about 1 year ago)
- Language: TypeScript
- Size: 4.67 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# 测试TS依赖合并
查看`index.ts`、`index.js`这两个文件
> 如果是TS项目,那么需要做如下设置
**`tsconfig.json`需要制定待注入的库名称**
```json
{
"compilerOptions": {
"types": ["node", "@xmly/award-plugin-dva"]
}
}
```
## 运行
```sh
# TypeScript引用
npm run ts
# es5引用
npm run es
```