web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
500 B

  1. const safeThis = require('./utils/safeThis');
  2. if (process.env.NODE_ENV !== 'production' && typeof safeThis !== 'undefined') {
  3. // Only inject the runtime if it hasn't been injected
  4. if (!safeThis.__reactRefreshInjected) {
  5. const RefreshRuntime = require('react-refresh/runtime');
  6. // Inject refresh runtime into global scope
  7. RefreshRuntime.injectIntoGlobalHook(safeThis);
  8. // Mark the runtime as injected to prevent double-injection
  9. safeThis.__reactRefreshInjected = true;
  10. }
  11. }