You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docuseal/vendor/bundle/ruby/4.0.0/gems/shakapacker-9.7.0/package/loaders.d.ts

29 lines
793 B

// @ts-ignore: webpack is an optional peer dependency (using type-only import)
import type { LoaderDefinitionFunction } from "webpack"
export interface ShakapackerLoaderOptions {
[key: string]: unknown
}
export interface ShakapackerLoader {
loader: string
options?: ShakapackerLoaderOptions
}
export type LoaderResolver = (name: string) => string
export interface LoaderConfig {
test: RegExp | ((value: string) => boolean)
use: Array<string | ShakapackerLoader | LoaderDefinitionFunction>
exclude?: RegExp | string | Array<string>
include?: RegExp | string | Array<string>
type?: string
generator?: {
filename?: string
publicPath?: string
}
}
export function resolveLoader(name: string): string
export function createLoader(config: LoaderConfig): LoaderConfig