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

fix: Use browserslist-config [Sumac backport] #380

Conversation

arbrandes
Copy link
Contributor

@arbrandes arbrandes commented Dec 5, 2024

(This is a backport of #379 to Sumac.)

We were installing browserslist-config but not declaring it (as per the documentation and frontend-template-application). This had the effect that webpack - and likely others - were not using it.

For those curious, we discovered this by way of trying to get this to work: overhangio/tutor-indigo#109 (comment).

@arbrandes arbrandes changed the title fix: Use browserslist-config fix: Use browserslist-config [backport] Dec 5, 2024
@arbrandes arbrandes force-pushed the fix-browserslist-config-sumac branch 2 times, most recently from 680c717 to d249efe Compare December 6, 2024 12:43
Copy link

codecov bot commented Dec 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (91e3374) to head (3f5df84).
Report is 3 commits behind head on open-release/sumac.master.

Additional details and impacted files
@@                     Coverage Diff                     @@
##           open-release/sumac.master      #380   +/-   ##
===========================================================
  Coverage                     100.00%   100.00%           
===========================================================
  Files                            111       111           
  Lines                           1082      1082           
  Branches                         159       159           
===========================================================
  Hits                            1082      1082           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@arbrandes arbrandes changed the title fix: Use browserslist-config [backport] fix: Use browserslist-config [Sumac backport] Dec 6, 2024
@arbrandes arbrandes force-pushed the fix-browserslist-config-sumac branch 4 times, most recently from 3531389 to 7d1a6be Compare December 6, 2024 14:00
We were installing browserslist-config but not declaring it.  This had
the effect that webpack - and likely others - were not using it.
Declaring `browserslist` in package.json exposed a bug in the
download.js tests that wasn't causing failures before (but arguably,
should): one can't use arrow functions to mock constructors because
calling `new` on them doesn't work.  See the NOTE under:

https://jestjs.io/docs/es6-class-mocks#-module-factory-function-must-return-a-function
Remove a file that was previously added by mistake.
@arbrandes arbrandes force-pushed the fix-browserslist-config-sumac branch from 7d1a6be to 3f5df84 Compare December 6, 2024 14:07
Copy link
Contributor

@brian-smith-tcril brian-smith-tcril left a comment

Choose a reason for hiding this comment

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

:shipit:

@arbrandes arbrandes merged commit 641a5e2 into openedx:open-release/sumac.master Dec 6, 2024
7 checks passed
@arbrandes arbrandes deleted the fix-browserslist-config-sumac branch December 6, 2024 15:27
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