Documentation
¶
Overview ¶
Package esbuildplugin provides an esbuild plugin that resolves bare npm imports directly from an npmgo tarball cache, so a frontend can be bundled without ever creating a node_modules directory.
It lives in its own Go module so the core npmgo installer stays free of external dependencies; only this package pulls in esbuild.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(index *npmgo.PackageIndex) api.Plugin
New returns an esbuild plugin backed by the given PackageIndex. Bare imports (e.g. "react", "react/jsx-runtime", "@scope/pkg") and relative imports within a cached package are resolved from the index; everything else is left to esbuild's default resolver.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.