alibaba / alibaba/ice

DataLoader 引用 Pages 下的非入口类文件构建报错

Open
#6,007 0 comments 0 reactions 1 assignee Claimed by @chenjun1011 View on GitHub
bug
Dominant language
TypeScript
Stars
18.6k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug

如果 Pages 目录下存在一个 utils.js 文件,被 index.tsx 的 dataLoader 所引用,dataLoader 会出现构建报错,原因是 utils.js 的文件被代码移除。

### Expected behavior

dataLoader 的相关依赖被正常保留

### Actual behavior

_No response_

### Version of ice.js

3

### Content of build.json or ice.config.mts

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.