UNPKG

548 BTypeScriptView Raw
1import webpack = require('webpack');
2import { Service, TransformOptions } from 'esbuild';
3import { Except } from 'type-fest';
4export declare type Compiler = webpack.Compiler & {
5 $esbuildService?: Service;
6};
7declare type Filter = string | RegExp;
8declare type FilterObject = {
9 include?: Filter | Filter[];
10 exclude?: Filter | Filter[];
11};
12export declare type LoaderOptions = Except<TransformOptions, 'sourcemap' | 'sourcefile'>;
13export declare type MinifyPluginOptions = Except<TransformOptions, 'sourcefile'> & FilterObject;
14export {};