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
{{ message }}
Repository navigation
Default export conditions are not documented #7560
Hello. Yes. For example, Vite's documentation says: The default allowed conditions are: import, module, browser, default, and production/development based on current mode.
Thanks for pointing them out. I think they are important for NPM package developers, so they can understand how to best provide code for browser, or server, or electron, etc.
Hi @snitin315 , I noticed this issue has been assigned for some time but I don't see a linked PR.
If you're not actively working on it, I’d be happy to help document the default resolve.conditionNames behavior based on the current defaults implementation.
Please let me know if I can take this forward
Activity
alexander-akait commentedon Feb 26, 2025
Do you mean
conditionNames?webJose commentedon Feb 26, 2025
Hello. Yes. For example, Vite's documentation says: The default allowed conditions are:
import,module,browser,default, andproduction/developmentbased on current mode.alexander-akait commentedon Feb 27, 2025
@webJose Yeah, we can improve it, but it is complex than just list, there is our default setup - https://github.com/webpack/webpack/blob/main/lib/config/defaults.js#L1540
So it is based on:
require/import/@import url(...)/etcwebJose commentedon Feb 27, 2025
Thanks for pointing them out. I think they are important for NPM package developers, so they can understand how to best provide code for browser, or server, or electron, etc.
Rishabh037 commentedon Feb 23, 2026
please assign me this issue
aayushi-tomar commentedon Feb 26, 2026
Hi @snitin315 , I noticed this issue has been assigned for some time but I don't see a linked PR.
If you're not actively working on it, I’d be happy to help document the default resolve.conditionNames behavior based on the current defaults implementation.
Please let me know if I can take this forward
docs(configuration): document default conditionNames by mode, target,…
docs(configuration): document default conditionNames by mode, target,…