You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
613 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import type { Plugin } from 'vite';
/**
* TODO 临时重写,解决 @vitejs/plugin-vue 的 Bug
*/
export declare function rewriteCompilerSfcParse(): void;
/**
* 已废弃,交由 rewriteExistsSyncHasRootFile 实现,因为新的 vite 版本在 configResolved 中重写已经晚了
* 解决 HBuilderX 项目未包含 package.json 时initTSConfck 可能导致查找过慢,或递归目录时权限不足报错
* 即:未包含 package.json 时,直接移除 initTSConfck 相关逻辑
* @param inputDir
* @returns
*/
export declare function initFixedEsbuildInitTSConfck(inputDir: string): Plugin[];