wilddragon-site/node_modules/next/dist/compiled/@next/react-refresh-utils/dist/ReactRefreshRspackPlugin.js
2026-04-17 15:51:01 -04:00

18 lines
No EOL
804 B
JavaScript
Executable file

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const PLUGIN_NAME = 'ReactRefreshRspackPlugin';
class ReactRefreshRspackPlugin {
apply(compiler) {
new compiler.webpack.ProvidePlugin({
$ReactRefreshRuntime$: require.resolve('./internal/RspackReactRefresh'),
}).apply(compiler);
compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => {
compilation.hooks.additionalTreeRuntimeRequirements.tap(PLUGIN_NAME, (_, runtimeRequirements) => {
runtimeRequirements.add(compiler.webpack.RuntimeGlobals.moduleCache);
});
});
}
}
ReactRefreshRspackPlugin.loader = 'builtin:react-refresh-loader';
exports.default = ReactRefreshRspackPlugin;
//# sourceMappingURL=ReactRefreshRspackPlugin.js.map