Closed as not planned
Description
Describe the bug
It seems that Vite 7 doesn't properly resolve package.json#exports
.
Reproduction
https://github.com/brillout/vite-7-regression-exports
Steps to reproduce
No response
System Info
System:
OS: Linux 6.8 Ubuntu 24.04.2 LTS 24.04.2 LTS (Noble Numbat)
CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
Memory: 2.23 GB / 7.52 GB
Container: Yes
Shell: 5.2.21 - /bin/bash
Binaries:
Node: 22.14.0 - ~/.nvm/versions/node/v22.14.0/bin/node
Yarn: 1.22.22 - ~/.nix-profile/bin/yarn
npm: 10.9.2 - ~/.nvm/versions/node/v22.14.0/bin/npm
pnpm: 9.15.9 - ~/.local/share/pnpm/pnpm
bun: 1.1.24 - ~/.bun/bin/bun
Watchman: 2024.03.11.00 - /home/rom/.nix-profile/bin/watchman
Browsers:
Chrome: 137.0.7151.68
npmPackages:
vite: ^7.0.0-beta.2 => 7.0.0-beta.2
Used Package Manager
pnpm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.