web_pkg_fs

package
v0.51.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL