facebook / facebook/docusaurus

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

オープン
#5,757 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug difficulty: intermediate domain: markdown status: blocked
主要言語
TypeScript
スター
66.2k
フォーク
10k
平均マージ
1日 3時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。