Skip to content

Commit 4a265e5

Browse files
authored
Workaround Parcel bug with re-exports (#2849)
1 parent da2aa74 commit 4a265e5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

packages/@react-aria/grid/src/useGridRowGroup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
import {HTMLAttributes} from 'react';
1414

15-
interface GridRowGroupAria {
15+
export interface GridRowGroupAria {
1616
/** Props for the row group element. */
1717
rowGroupProps: HTMLAttributes<HTMLElement>
1818
}

packages/@react-aria/table/src/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,9 @@ export * from './useTableHeaderRow';
1717
export * from './useTableCell';
1818
export * from './useTableSelectionCheckbox';
1919

20-
export {useGridRowGroup as useTableRowGroup} from '@react-aria/grid';
20+
// Workaround for a Parcel bug where re-exports don't work in the CommonJS output format...
21+
// export {useGridRowGroup as useTableRowGroup} from '@react-aria/grid';
22+
import {GridRowGroupAria, useGridRowGroup} from '@react-aria/grid';
23+
export function useTableRowGroup(): GridRowGroupAria {
24+
return useGridRowGroup();
25+
}

0 commit comments

Comments
 (0)