Skip to content

[Bug]: Svelte5 HMR is not available in Rsbuild #4367

@xbzhang2020

Description

@xbzhang2020

Version

System:
    OS: macOS 14.6.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 361.71 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Chrome: 131.0.6778.265
    Safari: 17.6
  npmPackages:
    @rsbuild/core: ^1.1.8 => 1.1.13 
    @rsbuild/plugin-svelte: ^1.0.5 => 1.0.7

Details

After creating a svelte project by create-rsbuild, I modified html in App.svelte, but the page reloaded instead of using hmr.

Reproduce link

none

Reproduce Steps

  1. Create a project:npx create-rsbuild --dir rsbuild-svelte-project --template svelte-ts
  2. Run npm run dev
  3. Modify html in App.svelte.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions