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

Replace fluent n* with js bundle #2988

Conversation

JamesBurnside
Copy link
Member

@JamesBurnside JamesBurnside commented Apr 26, 2023

What

Replace fluent n* with single js bundle

  • Add webpack config to do bundling
    • bundles for both ESM and CJS
  • Replace usage of n* with bundle
  • Hook up build system to pick up n* wrapper package output

Why

Short term plan to support react 18 by removing react18 peer dependency (see #1900)

How Tested

  • Bundler should show no significant regression in app size ⚠️ todo: confirm this is reporting correctly/bundler is bundling correctly
  • CI snapshots ✅
  • All composites in samples apps running dev mode ✅
  • All composites and MessageThread in storybook ✅
  • All composites in sample apps running production build ✅
  • Static html composites ✅
  • Locally NPM pack and test package (primarily message thread component in local test app) ✅

@github-actions
Copy link
Contributor

github-actions bot commented Apr 26, 2023

Calling bundle size is decreased✅.

  • Current size: 9791685
  • Base size: 9797692
  • Diff size: -6007

@github-actions
Copy link
Contributor

github-actions bot commented Apr 26, 2023

CallWithChat bundle size is decreased✅.

  • Current size: 10187180
  • Base size: 10191715
  • Diff size: -4535

@github-actions
Copy link
Contributor

github-actions bot commented Apr 26, 2023

Chat bundle size is decreased✅.

  • Current size: 9836209
  • Base size: 9839747
  • Diff size: -3538

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot.

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@JamesBurnside JamesBurnside changed the title [🚧DRAFT - TEST] Test replacing fluent n* with single js bundle Replace fluent n* with js bundle Apr 27, 2023
@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot.

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@JamesBurnside JamesBurnside changed the base branch from main to feature/react-18-short-term-support May 1, 2023 21:35
…ort' into jaburnsi/replace-n-star-usage-with-single-bundle
@github-actions
Copy link
Contributor

github-actions bot commented May 1, 2023

Copy link
Member

@emlynmac emlynmac left a comment

Choose a reason for hiding this comment

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

LGTM!

@JamesBurnside JamesBurnside merged commit 15c2622 into feature/react-18-short-term-support May 3, 2023
27 checks passed
@JamesBurnside JamesBurnside deleted the jaburnsi/replace-n-star-usage-with-single-bundle branch May 3, 2023 17:43
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.

None yet

3 participants