-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.d.ts
More file actions
29 lines (27 loc) · 760 Bytes
/
vite.d.ts
File metadata and controls
29 lines (27 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { PluginOptions } from './types';
/**
* Vite plugin that makes React component names public on minified bundles
* by adding displayName properties to component definitions.
*
* @example
* ```js
* import { defineConfig } from 'vite';
* import react from '@vitejs/plugin-react';
* import reactDisplayNamePlugin from 'react-display-name-plugin/vite';
*
* export default defineConfig({
* plugins: [
* react(),
* reactDisplayNamePlugin({
* parseDependencies: true,
* exclude: ['node_modules']
* })
* ]
* });
* ```
*
* @param options - Plugin configuration options
* @returns A Vite plugin instance
*/
declare function reactDisplayNamePlugin(options?: PluginOptions): any;
export = reactDisplayNamePlugin;