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

10 lines
853 B
TypeScript

import type { Compiler, LoaderContext } from 'webpack';
import type { SFCDescriptor, CompilerOptions } from 'vue/compiler-sfc';
import type { VueLoaderOptions } from '.';
export declare function needHMR(vueLoaderOptions: VueLoaderOptions, compilerOptions: Compiler['options']): boolean;
export declare function resolveTemplateTSOptions(descriptor: SFCDescriptor, options: VueLoaderOptions): CompilerOptions | null;
export declare function getOptions(loaderContext: LoaderContext<VueLoaderOptions>): any;
export declare function stringifyRequest(loaderContext: LoaderContext<VueLoaderOptions>, request: string): string;
export declare function genMatchResource(context: LoaderContext<VueLoaderOptions>, resourcePath: string, resourceQuery?: string, lang?: string): string;
export declare const testWebpack5: (compiler?: Compiler | undefined) => boolean;