You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running enhanced-resolve under Yarn PnP the exports field is not respected
To Reproduce
Setup:
mkdir repro &&cd repro
yarn init -y
yarn set version berry
yarn add enhanced-resolve rollup
Code:
import{ResolverFactory,CachedInputFileSystem}from'enhanced-resolve';importfsfrom'fs';constcachedFS=newCachedInputFileSystem(fs);constresolver=ResolverFactory.createResolver({fileSystem: cachedFS,conditionNames: ['node','import'],});resolver.resolve({},__filename,'rollup',{},(err,filepath)=>{console.log(filepath)// filepath ends with `rollup\dist\es\rollup.js` when running under node_modules// and `rollup\dist\rollup.js` when running under PnP});
The text was updated successfully, but these errors were encountered:
Describe the bug
When running
enhanced-resolve
under Yarn PnP theexports
field is not respectedTo Reproduce
Setup:
Code:
The text was updated successfully, but these errors were encountered: