Skip to content

[Bug]: thread 'tokio-runtime-worker' panicked at rolldown_plugin_import_glob: Invalid glob pattern: @/assets/**/*.png #4971

@Q16solver

Description

@Q16solver

Reproduction link or steps

https://stackblitz.com/edit/github-gzbuzr-8ysvjcvj

For some reason, pnpm i hangs in stackblitz, please download the project and run it locally

  1. Run pnpm i
  2. Run pnpm build
  3. Observe that you get error log and the remaining build hangs
thread 'tokio-runtime-worker' panicked at crates\rolldown_plugin_import_glob\src\utils.rs:316:7:
Invalid glob pattern: @/assets/**/*.png

What is expected?

The build should be successful, the build/glob works if vite experimental native plugin is not enabled.

What is actually happening?

rolldown_plugin_import_glob is giving an error with invalid import glob. I'm not actually sure if this is an issue with rolldown-vite, as I'm using that with nuxt, but the error points to source code within the rolldown plugin, so I'll open the issue here.

Background context: I'm currently trying to migrate my whole nuxt app to rolldown vite! Everything is going well until I enable the native plugins, and this error pops up. If native plugin is disabled, app builds successfully.

System Info

System:
    OS: Windows 11 10.0.26100
    CPU: (16) x64 AMD Ryzen 7 7730U with Radeon Graphics
    Memory: 5.04 GB / 38.83 GB
  Binaries:
    Node: 24.1.0 - C:\Program Files\nodejs\node.EXE
    npm: 11.3.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 10.2.0 - ~\AppData\Local\pnpm\pnpm.EXE
    bun: 1.2.15 - ~\.bun\bin\bun.EXE
  Browsers:
    Edge: Chromium (135.0.3179.85)
    Internet Explorer: 11.0.26100.1882

Any additional comments?

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions