Skip to content

Vue Macros Transformations Fail with Rspack Version > 1.2.3 & Rsbuild > 1.2.9 #984

@chengzhuo5

Description

@chengzhuo5

Describe the bug

When using Rspack version > 1.2.3 or Rsbuild > 1.2.9, all macro transformations from Vue Macros will fail to work.If Rspack <= 1.2.3 or Rsbuild <= 1.2.9, Vue Macros will work fine with version < 2.14.0. But if Vue Macros >= 2.14.0, Rspack and Rsbuild will fail to work with any version.

Reproduction

Clone https://github.com/vue-macros/vue3-rsbuild.git and upgrade @rsbuild/core to 1.2.10 or latest
or an example

System Info

System:
    OS: Windows 11 10.0.26100
    CPU: (16) x64 AMD Ryzen 7 4800H with Radeon Graphics
    Memory: 14.78 GB / 63.87 GB
  Binaries:
    Node: 22.17.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.9.2 - C:\Program Files\nodejs\npm.CMD
    pnpm: 10.14.0 - ~\AppData\Roaming\npm\pnpm.CMD
  Browsers:
    Edge: Chromium (122.0.2365.106)

Used Package Manager

n/a

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions