Dependency entry point lookup #2214
Unanswered
Xiot
asked this question in
Troubleshooting
Replies: 1 comment
-
Looking through the code, I figured out how
The output from that is
The relevant bits from the
So it appears that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How does the resolution for finding the entrypoint for a package work?
I have a package that as
main
,module
as well asbrowser
fields defined in itspackage.json
, but I don't see a way to specify which one to use.I see
installOptions.packageLookupFields
but its usage isn't very clear as it looks like it takes an array of package names.My use case is that I have a package that has both a client and a server build, so I need to select the correct one.
By default it looks like its always selecting the
browser
package.Is there a way to specify that the build should target node and not the browser?
Beta Was this translation helpful? Give feedback.
All reactions