hegresphere/node_modules/vue-loader/dist/index.d.ts
2024-12-12 17:01:12 +01:00

32 lines
1.0 KiB
TypeScript

import type { LoaderContext } from 'webpack';
import type { TemplateCompiler, CompilerOptions, SFCTemplateCompileOptions, SFCScriptCompileOptions } from 'vue/compiler-sfc';
import VueLoaderPlugin from './plugin';
export { VueLoaderPlugin };
export interface VueLoaderOptions {
babelParserPlugins?: SFCScriptCompileOptions['babelParserPlugins'];
transformAssetUrls?: SFCTemplateCompileOptions['transformAssetUrls'];
compiler?: TemplateCompiler | string;
compilerOptions?: CompilerOptions;
/**
* TODO remove in 3.4
* @deprecated
*/
reactivityTransform?: boolean;
/**
* @experimental
*/
propsDestructure?: boolean;
/**
* @experimental
*/
defineModel?: boolean;
customElement?: boolean | RegExp;
hotReload?: boolean;
exposeFilename?: boolean;
appendExtension?: boolean;
enableTsInTemplate?: boolean;
experimentalInlineMatchResource?: boolean;
isServerBuild?: boolean;
}
export default function loader(this: LoaderContext<VueLoaderOptions>, source: string): string | void;