facebook / facebook/docusaurus

Bug: mdx-loader caching issue => linked md files should be added as dependencies

未关闭
#5,757 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug difficulty: intermediate domain: markdown status: blocked
主要语言
TypeScript
星标
66.2k
派生
10k
平均合并
1 天 3 小时
30 天内合并 PR
52

描述

## 🐛 Bug Report

Suppose you have:

```md
# md file

[link](./otherMdFile.md)
```

Then if the linked md file change from `slug: /path1` to `slug: /path2` the md file must be "invalidated"

Otherwise, we'll keep linking to `/path1` (instead of new `/path2`) due to Webpack caches.

mdx-loader probably needs to collect linked file paths, and call `this.addDependency(linkedFilePath);`

---

Issue noticed in PR https://github.com/facebook/docusaurus/pull/5755

https://app.netlify.com/sites/docusaurus-2/deploys/6171611d255a130008c35dff

Had to clear the Netlify cache to fix the build failure

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。