[Bug?]: Different node_modules layout on Node.js 23 when enableTransparentWorkspaces
is false
#6567
Labels
enableTransparentWorkspaces
is false
#6567
Self-service
Describe the bug
Yarn 4.3.1 generated different nm layout on Node.js 23 when
enableTransparentWorkspaces
isfalse
. I also tested on Yarn 4.5.1, the nm layout is identical to yarn 4.3.1.To reproduce
Expected: there are no differences between these two file. As there are no differences when running yarn on node.js 22 vs node.js 20.
Actual: Their are differences from
@babel/*
packages, and it seems that yarn 4 on Node.js 23 are hoisting less packages to the top level than Node.js 22/20.Environment
System:
OS: macOS 14.7
CPU: (10) arm64 Apple M1 Max
Binaries:
Node: 20.13.1 - /private/var/folders/qq/f33w791j6wgb405mt9lgpw3w0000gn/T/xfs-b5fa2615/node
Yarn: 4.5.1 - /private/var/folders/qq/f33w791j6wgb405mt9lgpw3w0000gn/T/xfs-b5fa2615/yarn
npm: 10.5.2 - ~/.nvm/versions/node/v20.13.1/bin/npm
bun: 0.5.1 - ~/.bun/bin/bun
npmPackages:
jest: ^30.0.0-alpha.2 => 30.0.0-alpha.2
Additional context
This issue currently blocks babel/babel#16912.The text was updated successfully, but these errors were encountered: