esbuildplugin

package module
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

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