mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-23 14:06:59 +02:00
fix(mdx-loader): remove opt-in for mdx dependency file (#11179)
This commit is contained in:
parent
e839b67034
commit
f3e3f54e5c
1 changed files with 0 additions and 7 deletions
|
@ -77,13 +77,6 @@ async function createMdxLoaderDependencyFile({
|
||||||
options: PluginOptions;
|
options: PluginOptions;
|
||||||
versionsMetadata: VersionMetadata[];
|
versionsMetadata: VersionMetadata[];
|
||||||
}): Promise<string | undefined> {
|
}): Promise<string | undefined> {
|
||||||
// TODO this has been temporarily made opt-in until Rspack cache bug is fixed
|
|
||||||
// See https://github.com/facebook/docusaurus/pull/10931
|
|
||||||
// See https://github.com/facebook/docusaurus/pull/10934#issuecomment-2672253145
|
|
||||||
if (!process.env.DOCUSAURUS_ENABLE_MDX_DEPENDENCY_FILE) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
const filePath = path.join(dataDir, '__mdx-loader-dependency.json');
|
const filePath = path.join(dataDir, '__mdx-loader-dependency.json');
|
||||||
// the cache is invalidated whenever this file content changes
|
// the cache is invalidated whenever this file content changes
|
||||||
const fileContent = {
|
const fileContent = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue