GoScrobble/web/node_modules/@pmmmwh/react-refresh-webpack-plugin/loader/RefreshSetup.runtime.js

15 lines
459 B
JavaScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
/* eslint-disable no-global-assign, no-unused-vars */
/* global $RefreshRuntime$, $RefreshSetup$ */
/**
* Code prepended to each JS-like module to setup react-refresh globals.
*
* All globals are injected via Webpack parser hooks.
*
* The function declaration syntax below is needed for `Template.getFunctionContent` to parse this.
*/
module.exports = function () {
$RefreshRuntime$ = require('$RefreshRuntimePath$');
$RefreshSetup$(module.id);
};