* @param {import('./types').ReactRefreshPluginOptions} [options] Options for react-refresh-plugin.
(options = {})
| 15 | * @param {import('./types').ReactRefreshPluginOptions} [options] Options for react-refresh-plugin. |
| 16 | */ |
| 17 | constructor(options = {}) { |
| 18 | validateOptions(schema, options, { |
| 19 | name: 'React Refresh Plugin', |
| 20 | baseDataPath: 'options', |
| 21 | }); |
| 22 | |
| 23 | /** |
| 24 | * @readonly |
| 25 | * @type {import('./types').NormalizedPluginOptions} |
| 26 | */ |
| 27 | this.options = normalizeOptions(options); |
| 28 | } |
| 29 | |
| 30 | /** |
| 31 | * Applies the plugin. |
nothing calls this directly
no test coverage detected