UNPKG

460 BJavaScriptView Raw
1/* eslint-disable no-global-assign, no-unused-vars */
2/* global $RefreshRuntime$, $RefreshSetup$ */
3
4/**
5 * Code prepended to each JS-like module to setup react-refresh globals.
6 *
7 * All globals are injected via Webpack parser hooks.
8 *
9 * The function declaration syntax below is needed for `Template.getFunctionContent` to parse this.
10 */
11module.exports = function () {
12 $RefreshRuntime$ = require('react-refresh/runtime');
13 $RefreshSetup$(module.id);
14};