Skip to content

Conversation

@ChristopherChudzicki
Copy link
Contributor

@ChristopherChudzicki ChristopherChudzicki commented Oct 17, 2024

What are the relevant tickets?

Description (What does it do?)

This PR updates course-search-utils to provide an ESM and CJS output.

Our build will use the ESM output, which allows us to tree-shake the libraries used within course-search-utils. (Primarily, remixicon).

Important: Review with mitodl/course-search-utils#148

How can this be tested?

  1. Check that the search page / channel pages still look good great.
  2. Run NODE_ENV=production yarn workspace main build
    • In the output, you should see that the JS load for /search and /c/[channelType]/[name] is a bit bigger than the other routes, but not double, as it is on nextjs branch
    • If you want, add ANALYZE=true to the command above to get the webpack analysis

@ChristopherChudzicki ChristopherChudzicki changed the title Cc/analyze bundle analyzer, fix search page + channel page JS sizes Oct 17, 2024
@ChristopherChudzicki ChristopherChudzicki marked this pull request as ready for review October 18, 2024 13:41
@ChristopherChudzicki ChristopherChudzicki added the Needs Review An open Pull Request that is ready for review label Oct 18, 2024
Copy link
Contributor

@abeglova abeglova left a comment

Choose a reason for hiding this comment

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

lgtm

@ChristopherChudzicki ChristopherChudzicki merged commit ede73e3 into nextjs Oct 21, 2024
12 checks passed
@odlbot odlbot mentioned this pull request Oct 22, 2024
74 tasks
@rhysyngsun rhysyngsun deleted the cc/analyze branch February 7, 2025 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review An open Pull Request that is ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants