不支持Files白名单类型的文件导入
Open
bug
- Dominant language
- TypeScript
- Stars
- 18.6k
- Forks
- 2.1k
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug
```ts
...
import FilesModule from '@ali/myPack/src/xxx/xxx-root';
...
```
并没有加载这个文件,而是加载了@ali/myPack里main对应的index.js
### Expected behavior
加载我指定的文件
### Actual behavior
_No response_
### Version of ice.js
3.4.0
### Content of build.json or ice.config.mts
_No response_
### Additional context
_No response_
Contributor guide
Research direction
Reproduce the issue in ice.js 3.4.0 using the shown @ali/myPack/src/xxx/xxx-root import and compare it with the package's main entry resolution. Trace the import-resolution entry point responsible for Files whitelist handling. Done means the explicitly specified file is loaded instead of @ali/myPack's main index.js.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100