Feature request
What is the expected behavior?
It would be nice if webpack respects "exports" filed defined in package.json and follow a new resolution strategy.
What is motivation or use case for adding/changing the behavior?
This feature is just landed in [email protected] (see proposal-pkg-exports).
How should this be implemented in your opinion?
-
Read "exports" filed and create resolve.alias map internally (ie if resolve.useExports = true is turned on) using proposed resolution strategy.
-
Allow to specify resolve.mainFields = ['exports'] and check for this reserved keyword. If it is found then apply proposed resolution strategy.
Are you willing to work on this yourself?
no
Feature request
What is the expected behavior?
It would be nice if
webpackrespects"exports"filed defined inpackage.jsonand follow a new resolution strategy.What is motivation or use case for adding/changing the behavior?
This feature is just landed in
[email protected](seeproposal-pkg-exports).How should this be implemented in your opinion?
Read
"exports"filed and createresolve.aliasmap internally (ie ifresolve.useExports = trueis turned on) using proposed resolution strategy.Allow to specify
resolve.mainFields = ['exports']and check for this reserved keyword. If it is found then apply proposed resolution strategy.Are you willing to work on this yourself?
no