UNPKG

@pmmmwh/react-refresh-webpack-plugin

Version:

An **EXPERIMENTAL** Webpack plugin to enable "Fast Refresh" (also previously known as _Hot Reloading_) for React components.

25 lines (24 loc) 693 B
export type ESModuleOptions = { /** * Files to explicitly exclude from flagged as ES Modules. */ exclude?: string | RegExp | (string | RegExp)[] | undefined; /** * Files to explicitly include for flagged as ES Modules. */ include?: string | RegExp | (string | RegExp)[] | undefined; }; export type ReactRefreshLoaderOptions = { /** * Enables usage of ES6 `const` and `let` in generated runtime code. */ const?: boolean | undefined; /** * Enables strict ES Modules compatible runtime. */ esModule?: boolean | ESModuleOptions | undefined; }; export type NormalizedLoaderOptions = import('type-fest').SetRequired< ReactRefreshLoaderOptions, 'const' >;