-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.d.ts
More file actions
36 lines (33 loc) · 889 Bytes
/
webpack.d.ts
File metadata and controls
36 lines (33 loc) · 889 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
30
31
32
33
34
35
36
import { Compiler } from 'webpack';
import { PluginOptions } from './types';
/**
* Webpack plugin that makes React component names public on minified bundles
* by adding displayName properties to component definitions.
*
* @example
* ```js
* const ReactDisplayNamePlugin = require('react-display-name-plugin/webpack');
*
* module.exports = {
* plugins: [
* new ReactDisplayNamePlugin({
* parseDependencies: true,
* exclude: ['node_modules']
* })
* ]
* };
* ```
*/
declare class ReactDisplayNamePlugin {
/**
* Creates a new instance of the ReactDisplayNamePlugin
* @param options - Plugin configuration options
*/
constructor(options?: PluginOptions);
/**
* Apply the plugin to the webpack compiler
* @param compiler - The webpack compiler instance
*/
apply(compiler: Compiler): void;
}
export = ReactDisplayNamePlugin;