Qualify CJS-only module imports

This commit is contained in:
Fedor Indutny
2025-09-19 13:05:51 -07:00
committed by GitHub
parent 140241b83f
commit 40eaf078cc
401 changed files with 1278 additions and 593 deletions

View File

@@ -6,7 +6,7 @@ import { createPortal } from 'react-dom';
import type { SpringValues } from '@react-spring/web';
import { animated } from '@react-spring/web';
import classNames from 'classnames';
import { noop } from 'lodash';
import lodash from 'lodash';
import { FocusScope } from 'react-aria';
import type { ModalConfigType } from '../hooks/useAnimated.js';
import type { Theme } from '../util/theme.js';
@@ -18,6 +18,8 @@ import { usePrevious } from '../hooks/usePrevious.js';
import { handleOutsideClick } from '../util/handleOutsideClick.js';
import { createLogger } from '../logging/log.js';
const { noop } = lodash;
const log = createLogger('ModalHost');
export const ModalContainerContext = React.createContext<HTMLElement | null>(