[COMPASS-5144] Update postcss-preset-env and Babel to account for more recent Electron or use shared webpack config Created: 07/Oct/21  Updated: 27/Oct/23  Resolved: 22/Jun/23

Status: Closed
Project: Compass
Component/s: Tech debt
Affects Version/s: None
Fix Version/s: No version

Type: Task Priority: Major - P3
Reporter: Anna Henningsen Assignee: Unassigned
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on COMPASS-4098 Upgrade to electron 13 Closed
Story Points: 3
Documentation Changes: Not Needed

 Description   

https://github.com/mongodb-js/compass/pull/2438#discussion_r722532814

`postcss-preset-env` browser list wasn't finding electron 13.5
I don't think this is a blocker since building for electron 6 browser env is ok, but we should update it.

Similairly in many of the packages there are `.browserlistrc` files which define the browser target for babel. Currently they are all `Electron >= 6` we should update them to `Electron >= 13`, but it will take some work updating babel deps and config I think. Could happen post merge of this even, but we should do it sooner vs later.

If it's easily done we should instead update the packages to use the shared `@mongodb-js/webpack-config-compass` package instead of updating individual webpacks/babels/browserlists.



 Comments   
Comment by Sergey Petushkov [ 22/Jun/23 ]

Already handled by shared webpack config

Generated at Wed Feb 07 22:38:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.