Skip to content

Commit

Permalink
perf: remove importChain when loading slide modules (#1652)
Browse files Browse the repository at this point in the history
Co-authored-by: _Kerman <kermanx@qq.com>
  • Loading branch information
jakobkordez and KermanX committed Jun 10, 2024
1 parent fff071b commit bd5fd53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/slidev/node/vite/loaders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ export function createSlidesLoader(
...withRenderedNote(slide),
frontmatter: undefined,
source: undefined,
importChain: undefined,
// remove raw content in build, optimize the bundle size
...(mode === 'build' ? { raw: '', content: '', note: '' } : {}),
}
Expand Down

0 comments on commit bd5fd53

Please sign in to comment.