util.d.ts 853 B

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