RefreshSetup.runtime.js 459 B

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