Skip to content

Commit

Permalink
add loadMDXWithCaching comment
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Oct 3, 2024
1 parent bb57d58 commit edc71b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/docusaurus-mdx-loader/src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ async function loadMDXWithCaching({
// Notably: the server compilation does not emit file-loader assets
// Using the server compilation otherwise leads to broken images
// See https://github.com/facebook/docusaurus/issues/10544#issuecomment-2390943794
// See https://github.com/facebook/docusaurus/pull/10553
// TODO a problem with this: server bundle will use client inline loaders
// This means server bundle will use ?emit=true for assets
// We should try to get rid of inline loaders to cleanup this caching logic
if (compilerName === 'client') {
const promise = loadMDX({
fileContent,
Expand Down

0 comments on commit edc71b7

Please sign in to comment.