Skip to content

Use modern JSX runtime with Babel, named exports, verbatim syntax#271

Merged
colinrotherham merged 52 commits intomainfrom
exports
Oct 8, 2025
Merged

Use modern JSX runtime with Babel, named exports, verbatim syntax#271
colinrotherham merged 52 commits intomainfrom
exports

Conversation

@colinrotherham
Copy link
Collaborator

@colinrotherham colinrotherham commented Oct 3, 2025

This PR ensures dependencies like classnames and tslib are no longer bundled by Rollup and includes:

Rollup also preserves (non-minified) CommonJS and ES modules with the correct file extensions too:

Dual module exports

Following on from v6.0.0-beta.0 this PR also fixes these missing exports:

 describe('Index', () => {
   it('contains all expected elements', () => {
@@ -15,8 +15,10 @@
       'Breadcrumb',
       'Button',
       'Card',
+      'CardContext',
       'CharacterCount',
       'Checkboxes',
+      'CheckboxesContext',
       'ChevronRightCircleIcon',
       'Clearfix',
       'Col',
@@ -24,6 +26,7 @@
       'ContentsList',
       'CrossIcon',
       'DateInput',
+      'DateInputContext',
       'Details',
       'DoAndDontList',
       'ErrorMessage',
@@ -31,10 +34,15 @@
       'Fieldset',
       'Footer',
       'Form',
+      'FormContext',
       'FormGroup',
+      'FormGroupContext',
       'Header',
+      'HeaderContext',
+      'HeadingLevel',
       'Hero',
       'HintText',
+      'Icon',
       'Images',
       'InsetText',
       'Label',
@@ -43,6 +51,7 @@
       'NavAZ',
       'Pagination',
       'Radios',
+      'RadiosContext',
       'ReadingWidth',
       'ReviewDate',
       'Row',
@@ -51,6 +60,9 @@
       'SkipLink',
       'SummaryList',
       'Table',
+      'TableContext',
+      'TableSection',
+      'TableSectionContext',
       'Tabs',
       'Tag',
       'Textarea',

@colinrotherham colinrotherham force-pushed the exports branch 3 times, most recently from d39e9d7 to 6637a46 Compare October 6, 2025 09:22
@colinrotherham colinrotherham changed the title Preserve Rollup build output (non-minified) for all modules Use modern JSX runtime, add Babel, named exports Oct 6, 2025
@colinrotherham colinrotherham changed the title Use modern JSX runtime, add Babel, named exports Use modern JSX runtime with Babel, add named exports, verbatim syntax Oct 6, 2025
@colinrotherham colinrotherham changed the title Use modern JSX runtime with Babel, add named exports, verbatim syntax Use modern JSX runtime with Babel, named exports, verbatim syntax Oct 6, 2025
@colinrotherham colinrotherham force-pushed the exports branch 3 times, most recently from 9c0c651 to 0caef1e Compare October 6, 2025 19:02
@colinrotherham colinrotherham force-pushed the exports branch 3 times, most recently from 02c4bd2 to 6dfd3d3 Compare October 7, 2025 08:25
@colinrotherham
Copy link
Collaborator Author

Both PRs #272 and #273 have been merged in

@colinrotherham
Copy link
Collaborator Author

Thanks @ricksmith130 I've merged #270 into here too

Add panel component, prepare beta release
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 8, 2025

@colinrotherham colinrotherham added this pull request to the merge queue Oct 8, 2025
Merged via the queue into main with commit ee8bb81 Oct 8, 2025
3 checks passed
@colinrotherham colinrotherham deleted the exports branch October 8, 2025 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants