facebook / facebook/docusaurus

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

Ouverte
#5,757 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug difficulty: intermediate domain: markdown status: blocked
Langage dominant
TypeScript
Étoiles
66.2k
Forks
10k
Merge moyen
1 j 3 h
PR mergées (30 j)
52

Description

## 🐛 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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.