Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@raissanjay
Copy link
Collaborator

@raissanjay raissanjay commented Jun 3, 2025

Before:
image

After:
image

Source maps work. Just need to run npm run prebuild to get them triggered and you can debug inside CardsCarousel.jsx

Also can code split css. We just need to import the CSS from the JS, co-locate the files together and webpack will be able to smartly load/bundle them together.

We can decide if we want to do giant bundle releases or individual chunks (or roll them out slowly) but the upside to this is we only need to release chunks of things at a time and not the entire app if only a small part changes. Becomes truly modular. We need to research if any downsides but we can do this migration piece at a time.

Can also lazy load third party dependencies on an add needed basis. Webpack automatically deduplicates modules, so you won’t end up shipping immer twice even if multiple files import it. Here’s how it works in practice:

const LazyImmer = React.lazy(() =>
  import(
    /* webpackChunkName: "immer-vendor" */
    'immer'
  )
);

@github-actions
Copy link

github-actions bot commented Jun 3, 2025

Core Web Vitals Metrics

Metric Value
LCP N/A s
FID N/A ms
CLS N/A

Recorded at: 2025-06-03T20:52:26.905Z
PR: #284

@github-actions
Copy link

github-actions bot commented Jun 3, 2025

Core Web Vitals Metrics

Metric Value
LCP N/A s
FID N/A ms
CLS N/A

Recorded at: 2025-06-03T20:52:46.064Z
PR: #284

@github-actions
Copy link

github-actions bot commented Jun 3, 2025

Core Web Vitals Metrics

Metric Value
LCP N/A s
FID N/A ms
CLS N/A

Recorded at: 2025-06-03T20:55:42.872Z
PR: #284

@github-actions
Copy link

github-actions bot commented Jun 3, 2025

Core Web Vitals Metrics

Metric Value
LCP N/A s
FID N/A ms
CLS N/A

Recorded at: 2025-06-03T20:57:48.978Z
PR: #284

@raissanjay raissanjay changed the title perf(mwpw-123): testing tree shaking + dynamic imports perf(mwpw-123): tree shaking + dynamic imports Jun 3, 2025
@github-actions
Copy link

github-actions bot commented Jun 3, 2025

Core Web Vitals Metrics

Metric Value
LCP N/A s
FID N/A ms
CLS N/A

Recorded at: 2025-06-03T21:02:33.736Z
PR: #284

@raissanjay raissanjay changed the title perf(mwpw-123): tree shaking + dynamic imports perf(mwpw-123): tree shaking + dynamic imports demo Jun 3, 2025
@github-actions
Copy link

github-actions bot commented Jun 3, 2025

Core Web Vitals Metrics

Metric Value
LCP N/A s
FID N/A ms
CLS N/A

Recorded at: 2025-06-03T22:47:53.915Z
PR: #284

@github-actions
Copy link

github-actions bot commented Jun 3, 2025

Core Web Vitals Metrics

Metric Value
LCP N/A s
FID N/A ms
CLS N/A

Recorded at: 2025-06-03T22:52:43.035Z
PR: #284

@github-actions
Copy link

github-actions bot commented Jun 3, 2025

Core Web Vitals Metrics

Metric Value
LCP N/A s
FID N/A ms
CLS N/A

Recorded at: 2025-06-03T22:58:41.099Z
PR: #284

@github-actions
Copy link

github-actions bot commented Jun 3, 2025

Core Web Vitals Metrics

Metric Value
LCP N/A s
FID N/A ms
CLS N/A

Recorded at: 2025-06-03T23:29:54.675Z
PR: #284

@github-actions
Copy link

github-actions bot commented Jun 3, 2025

Core Web Vitals Metrics

Metric Value
LCP N/A s
FID N/A ms
CLS N/A

Recorded at: 2025-06-03T23:31:20.759Z
PR: #284

@sanrai sanrai requested review from cmiqueo, gmirijan, jedjedjedM, sanrai and sheridansunier and removed request for cmiqueo June 4, 2025 17:48
@sanrai sanrai requested a review from cmiqueo June 4, 2025 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants