fuc-new/doc/node_modules/@vuepress/helper/lib/node/bundler/getBundlerName.d.ts
hellcat 6adbc04d4b 1
2025-10-03 17:17:08 +08:00

20 lines
452 B
TypeScript

import type { App } from 'vuepress/core';
/**
* Get current bundler name
*
* 获取当前打包器名称
*
* @param app - VuePress Node App / VuePress Node 应用
*
* @returns The bundler name / 打包器名称
*
* @example
* ```ts
* // With @vuepress/bundler-vite
* getBundlerName(app) // 'vite'
* // With @vuepress/bundler-webpack
* getBundlerName(app) // 'webpack'
* ```
*/
export declare const getBundlerName: (app: App) => string;