/** * This file contains an esbuild loader for wyw-in-js. * It uses the transform.ts function to generate class names from source code, * returns transformed code without template literals and attaches generated source maps */ import type { Plugin, TransformOptions } from 'esbuild'; import type { PluginOptions, Preprocessor, IFileReporterOptions } from '@wyw-in-js/transform'; type EsbuildPluginOptions = { debug?: IFileReporterOptions | false | null | undefined; esbuildOptions?: TransformOptions; filter?: RegExp | string; keepComments?: boolean | RegExp; oxcTransform?: boolean; prefixer?: boolean; preprocessor?: Preprocessor; sourceMap?: boolean; transformLibraries?: boolean; } & Partial; export default function wywInJS({ debug, sourceMap, keepComments, oxcTransform, prefixer, preprocessor, esbuildOptions, filter, transformLibraries, ...rest }?: EsbuildPluginOptions): Plugin; export {};