Thanks to visit codestin.com
Credit goes to github.com

Skip to content

rspack: virtual folder deletion concurrency issue for parallel buildsΒ #509

Closed
@elbywan

Description

@elbywan

Environment

node --version
v22.13.1
 "unplugin": "2.3.4"

Reproduction

πŸ“š Repo: https://github.com/elbywan/unplugin-repro

Describe the bug

The fake virtual modules plugin rely on a folder (node_modules/.rspack) that is shared between multiple compiler instances when they are run in the same context (base directory).

The issue is that this directory gets deleted as soon as the first build completes even though there could be one of more virtual files used by the other pending builds.

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