Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(react): add custom elements bundle #23896

Merged
merged 22 commits into from
Sep 13, 2021
Merged

feat(react): add custom elements bundle #23896

merged 22 commits into from
Sep 13, 2021

Conversation

liamdebeasi
Copy link
Contributor

@liamdebeasi liamdebeasi commented Sep 8, 2021

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Build (npm run build) was run locally and any changes were pushed
  • Lint (npm run lint) has passed locally and any fixes were made for failures

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the new behavior?

Ionic React now uses Stencil's custom elements bundle by default resulting in improved app load times, smaller bundle sizes, and compatibility with tooling such as Vite, ESBuild, and Rollup.

Does this introduce a breaking change?

  • Yes
  • No

Other information

@github-actions github-actions bot added package: core @ionic/core package package: react @ionic/react package labels Sep 8, 2021
@liamdebeasi liamdebeasi changed the title feat(react): add support for Custom Elements build feat(react): add custom elements bundle Sep 8, 2021
@@ -3,75 +3,142 @@
/* auto-generated react proxies */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything below this is still auto generated, correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

Copy link
Contributor

@willmartian willmartian Sep 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, everything looks good to me then (after CI passes). Good work 💯

@liamdebeasi
Copy link
Contributor Author

A few things with the latest commits:

  1. I got approval from Ely to remove many of the Ionic React + Ionic React Router spec tests as they were either redundant or being skipped altogether.
  2. I added a workaround for a CE Build bug where connectedCallback in Stencil Cmp is being fired before the WC is registered

@liamdebeasi liamdebeasi merged commit c50d895 into next Sep 13, 2021
@liamdebeasi liamdebeasi deleted the FW-155 branch September 13, 2021 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package package: react @ionic/react package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants