Open
Description
It cost me 4 hours to pinpoint why my builds all of a sudden started to fail with memory alloc exception, finally I found your library i introduced few months ago in our project causing the problem. It looks like there are many file imports index.tsx file but also index.tsx imports them. it is not noticeable unless you enable sourcemaps in vite builds.
here are some of the examples
index.tsx
import React, {
useEffect,
useReducer,
useRef,
} from 'react';
import type { MouseEvent, TouchEvent } from 'react';
import './index.css';
import getInnerSize from './utils/getInnerSize';
import useEventListener from './useEventListener';
import Gutter from './Gutter';
import { ActionType } from './state/reducer.actions';
import reducer, { State } from './state/reducer';
import getGutterSizes from './utils/getGutterSize';
import flattenChildren from './utils/flattenChildren';
import { isTouchEvent } from 'utils/isTouchEvent';
I will work on a PR tomorrow if I have some time but meanwhile if you can fix these issues before I raise PR that would be great.
otherwise it is a great tool.
Metadata
Metadata
Assignees
Labels
No labels