Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetWebPkg ¶
func GetWebPkg(ctx context.Context, ifs fs.FS, webPkgID string) (web_pkg.LookupWebPkgValue, func(), error)
GetWebPkg wraps an io/fs to provide a WebPkgGetter.
Expects the following filesystem structure:
- {web-pkg-id}/{filepath} - @myorg/mypkg/foo.js - react-dom/client.js
Looks up directories with Stat within the root. GetWebPkg is the web package getter. Returns nil, nil nil if not found.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.