Skip to content

Commit 7b0a3fd

Browse files
authored
fix: assets data may lost due to md loader cache (#1649)
1 parent d975660 commit 7b0a3fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/loaders/markdown/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ export default function mdLoader(this: any, content: string) {
148148
const opts: IMdLoaderOptions = this.getOptions();
149149
const cb = this.async();
150150

151+
// disable cache for avoid onResolveDemos and onResolveAtomMeta not work
152+
// and dumi already save cache by self, loader cache is unnecessary
153+
this.cacheable(false);
154+
151155
const cache = getCache('md-loader');
152156
// format: {path:mtime:loaderOpts}
153157
const baseCacheKey = [

0 commit comments

Comments
 (0)