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.
|
|
|
|
|
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[];
|