MCPcopy
hub / github.com/pmmmwh/react-refresh-webpack-plugin / constructor

Method constructor

lib/index.js:17–28  ·  view source on GitHub ↗

* @param {import('./types').ReactRefreshPluginOptions} [options] Options for react-refresh-plugin.

(options = {})

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

normalizeOptionsFunction · 0.50

Tested by

no test coverage detected