UNPKG

1.11 kBTypeScriptView Raw
1import { SFCTemplateCompileOptions, SFCAsyncStyleCompileOptions } from '@vue/compiler-sfc';
2import { Plugin } from 'rollup';
3export interface Options {
4 include: string | RegExp | (string | RegExp)[];
5 exclude: string | RegExp | (string | RegExp)[];
6 target: 'node' | 'browser';
7 exposeFilename: boolean;
8 customBlocks?: string[];
9 preprocessStyles?: boolean;
10 templatePreprocessOptions?: Record<string, SFCTemplateCompileOptions['preprocessOptions']>;
11 compiler?: SFCTemplateCompileOptions['compiler'];
12 compilerOptions?: SFCTemplateCompileOptions['compilerOptions'];
13 transformAssetUrls?: SFCTemplateCompileOptions['transformAssetUrls'];
14 postcssOptions?: SFCAsyncStyleCompileOptions['postcssOptions'];
15 postcssPlugins?: SFCAsyncStyleCompileOptions['postcssPlugins'];
16 cssModulesOptions?: SFCAsyncStyleCompileOptions['modulesOptions'];
17 preprocessCustomRequire?: SFCAsyncStyleCompileOptions['preprocessCustomRequire'];
18 preprocessOptions?: SFCAsyncStyleCompileOptions['preprocessOptions'];
19}
20export default function PluginVue(userOptions?: Partial<Options>): Plugin;