-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Description
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 node@12.7.0 (see proposal-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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels