Skip to content

use plugin rehype-highlight v7.0.0 memory leak #791

@zzzgydi

Description

@zzzgydi

Initial checklist

Affected packages and versions

rehype-highlight v7.0.0

Link to runnable example

https://github.com/zzzgydi/rhv7-memory-leak-test

Steps to reproduce

  • pnpm i
  • pnpm dev
  • Visit http://localhost:5173
  • Open Chrome's task manager and find the corresponding tab to observe the memory situation
  • Click start button
  • observe the memory situation
  • Click stop and clear button and observe

As a comparison

  • Change rehype-highlight v7.0.0 to rehype-highlight v6.0.0 in package.json
  • Repeat the steps above

Expected behavior

same as rehype-highlight v6.0.0

Actual behavior

image

Runtime

No response

Package manager

pnpm

OS

macOS

Build and bundle tools

Vite

Metadata

Metadata

Assignees

No one assigned

    Labels

    👀 no/externalThis makes more sense somewhere else👎 phase/noPost cannot or will not be acted on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions