UNPKG

676 BJavaScriptView Raw
1/**
2 * @typedef {Object} ESModuleOptions
3 * @property {string | RegExp | Array<string | RegExp>} [exclude] Files to explicitly exclude from flagged as ES Modules.
4 * @property {string | RegExp | Array<string | RegExp>} [include] Files to explicitly include for flagged as ES Modules.
5 */
6
7/**
8 * @typedef {Object} ReactRefreshLoaderOptions
9 * @property {boolean} [const] Enables usage of ES6 `const` and `let` in generated runtime code.
10 * @property {boolean | ESModuleOptions} [esModule] Enables strict ES Modules compatible runtime.
11 */
12
13/**
14 * @typedef {import('type-fest').SetRequired<ReactRefreshLoaderOptions, 'const'>} NormalizedLoaderOptions
15 */
16
17module.exports = {};