Skip to content

Commit 8873af2

Browse files
authored
fix: hmr spent a long time due to disable loader cache (#1659)
This reverts commit 7b0a3fd.
1 parent 88c9499 commit 8873af2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/loaders/markdown/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,6 @@ 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-
155151
const cache = getCache('md-loader');
156152
// format: {path:mtime:loaderOpts}
157153
const baseCacheKey = [

0 commit comments

Comments
 (0)