Skip to content

Vite creates an unexpected directory when building in version 7.2.0 and 7.2.1 #21077

@luckasnix

Description

@luckasnix

Describe the bug

When generating a production build using Vite 7.2.0 or 7.2.1, an unexpected directory is created. This issue did not occur in previous Vite versions.

It seems to happen when the project is located in a directory whose name contains characters outside the English alphabet.

Reproduction

https://github.com/luckasnix/vite-bug-report

Steps to reproduce

  1. Create a Vite project
  2. Move the project to a directory with non-American characters, for example "Aplicações".
  3. Run npm run build
  4. The "Aplicações" directory will appear

System Info

Windows 11

Used Package Manager

npm

Logs

No response

Validations

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