https://github.com/symind/rspack-persistent-cache-bug
https://github.com/symind/rspack-persistent-cache-bug
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/symind/rspack-persistent-cache-bug
- Owner: SyMind
- License: mit
- Created: 2025-07-09T03:06:31.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-07-09T03:22:19.000Z (12 months ago)
- Last Synced: 2025-07-09T04:28:05.248Z (12 months ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rspack persistent bug
复现步骤
1. pnpm install && pnpm build
2. 修改 `rspack.config.js` 变更 entry 为 `./loader.js?pagePath=.%2Fb.js!`
3. 删除 `a.js` 文件
4. 执行 `pnpm build`
报错信息如下
```
RROR in (./loader.js?pagePath=.%2Fb.js!)
× Module not found: Can't resolve './b.js' in '/rspack-persistent-cache-bug'
╭─[2:12]
1 │ import * as userland from "./b.js";
2 │ console.log(userland);
· ────────
╰────
```