Tencent / wepy

小程序组件化开发框架
https://wepyjs.gitee.io/wepy-docs/
Other
22.48k stars 3.06k forks source link

修复ts import不能简写为目录名的问题 #2750

Closed em64t closed 3 years ago

em64t commented 3 years ago

目录结构如下:

.
├── other.ts
├── test
│   └── index.ts

other.ts代码如下:

import { test } from './test';  // 报错
import { test } from './test/index';  // ok

问题

在ts里,import 简写为目录名'./test'时报错[Error] Missing files: ./test in /xxxxxxx/other.ts

Checklist
tencent-adm commented 3 years ago

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


yangfanye seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.