LoaderContext interface
The subset of webpack's loader context we use.
import type { LoaderContext } from '@dioramajs/glsl/loader'Turbopack implements it too.
interface LoaderContext<O>Members
| Name | Type | Description |
|---|---|---|
readonly resourcePath | string | Path of the file. |
readonly resourceQuery | string | Query of the import. |
addDependency | | Watches a file. |
async | | Makes the loader async and returns its callback. |
emitWarning | | Reports a warning. |
getOptions | | Loader options. |
getResolve? | | Returns a resolver with the bundler's rules. |
Defined in packages/glsl/src/loader.ts.