20 lines
452 B
TypeScript
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;
|