Table of Contents

Class EsbuildOnLoad

Namespace
Nite.Esbuild
Assembly
Nite.dll
public sealed record EsbuildOnLoad : IEquatable<EsbuildOnLoad>
Inheritance
EsbuildOnLoad
Implements
Inherited Members

Constructors

EsbuildOnLoad(string, string, Func<EsbuildLoadArgs, Task<EsbuildLoadResult?>>)

public EsbuildOnLoad(string Filter, string Namespace, Func<EsbuildLoadArgs, Task<EsbuildLoadResult?>> Callback)

Parameters

Filter string

A regular expression matched against the resolved path.

Namespace string

Only paths in this namespace, or any namespace when empty.

Callback Func<EsbuildLoadArgs, Task<EsbuildLoadResult>>

Properties

Callback

public Func<EsbuildLoadArgs, Task<EsbuildLoadResult?>> Callback { get; init; }

Property Value

Func<EsbuildLoadArgs, Task<EsbuildLoadResult>>

Filter

A regular expression matched against the resolved path.

public string Filter { get; init; }

Property Value

string

Namespace

Only paths in this namespace, or any namespace when empty.

public string Namespace { get; init; }

Property Value

string