Protected ReadonlyfoundProtected ReadonlyoutProtected ReadonlyrootReturns the names of the copied packages.
ProtectedfindThe package.json of name as Node finds the package from from. Looked up on disk rather than
with require.resolve('<name>/package.json'), which fails for packages whose exports leave it out.
Protectedvisit
Copies installed external packages, with their production dependencies, into
<outDir>/node_modulesso the server bundle runs from its own directory. Packages that are not installed are skipped: optional dependencies may legitimately be absent at runtime.