Skip to content

Commit

Permalink
fix: hmr spent a long time due to disable loader cache (#1659)
Browse files Browse the repository at this point in the history
This reverts commit 7b0a3fd.
  • Loading branch information
PeachScript authored May 15, 2023
1 parent 88c9499 commit 8873af2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/loaders/markdown/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,6 @@ 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 8873af2

Please sign in to comment.