Skip to content

@vueuse/core contains an annotation that Rolldown cannot interpret #5226

Description

@polRk

Describe the bug

vitepress v2.0.0-alpha.17

[INVALID_ANNOTATION] A comment "/* #__PURE__ */" in "../node_modules/@vueuse/core/dist/index.js" contains an annotation that Rolldown cannot interpret due to the position of the comment.
      ╭─[ ../node_modules/@vueuse/core/dist/index.js:3362:1 ]
      │
 3362 │ /* #__PURE__ */
      │ ───────┬───────
      │        ╰───────── comment ignored due to position
      │
      │ Help: For more information on how to use pure annotations correctly, check the documentation: https://rolldown.rs/in-depth/dead-code-elimination#pure
──────╯

Reproduction

	"devDependencies": {
		"oxc-minify": "^0.133.0",
		"vitepress": "^2.0.0-alpha.17"
	},
	"overrides": {
		"esbuild": "^0.28.0",
		"fflate": "0.8.2",
		"vite": "^8.0.0"
	},

Expected behavior

Compiles

System Info

System:
    OS: macOS 26.2
    CPU: (14) arm64 Apple M4 Pro
    Memory: 249.06 MB / 48.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 26.3.0 - /bin/node
    npm: 11.16.0 - /bin/npm
    bun: 1.3.10 - /bin/bun
  Browsers:
    Chrome: 149.0.7827.156
    Safari: 26.2

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    has-workaroundHas workaround, low priorityupstreamRelated to the dependencies

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions