Skip to content

Commit

Permalink
fix: assets data may lost due to md loader cache (#1649)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachScript authored May 11, 2023
1 parent d975660 commit 7b0a3fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/loaders/markdown/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ export default function mdLoader(this: any, content: string) {
const opts: IMdLoaderOptions = this.getOptions();
const cb = this.async();

// disable cache for avoid onResolveDemos and onResolveAtomMeta not work
// and dumi already save cache by self, loader cache is unnecessary
this.cacheable(false);

const cache = getCache('md-loader');
// format: {path:mtime:loaderOpts}
const baseCacheKey = [
Expand Down

0 comments on commit 7b0a3fd

Please sign in to comment.