Skip to content

Update postcss in the example app - #88

Merged
tylerkaraszewski merged 2 commits into
mainfrom
carlos-update-example-postcss
Dec 1, 2026
Merged

tylerkaraszewski merged 2 commits into
mainfrom
carlos-update-example-postcss

Conversation

@carlosmiceli

Copy link
Copy Markdown
Contributor

The example app has two vulnerable copies of PostCSS: 8.4.19, and 7.0.39 under resolve-url-loader@4. No 7.x release has a fix, so a lockfile-only update can't clear all five alerts.

  • Override postcss to ^8.5.23 in example/package.json. It resolves to 8.5.34.
  • Override resolve-url-loader to ^5.0.0. v5 uses PostCSS 8, which removes PostCSS 7 from the tree. The example app has no Sass or CSS files, so this loader never runs.
  • Regenerate example/package-lock.json. Only PostCSS and resolve-url-loader change, plus PostCSS's own dependencies (picocolors, source-map-js).

https://github.com/Expensify/Expensify/issues/707752

Tests

Ran with Node 24.22.1 from .nvmrc.

  1. Ran a clean install of the example app (rm -rf node_modules && npm ci) and checked the resolved versions:
postcss 8.5.34 | resolve-url-loader 5.0.0

npm ls postcss resolve-url-loader --all lists only postcss@8.5.34 (97 entries) and resolve-url-loader@5.0.0.

  1. Built the example web app with CI=false DISABLE_ESLINT_PLUGIN=true npx craco build. The ESLint plugin is disabled because main already fails the build with an unrelated Plugin "react" was conflicted error. Before and after this change the build produced the same bundle:
Compiled successfully.
  81.4 kB  build/static/js/main.8a23fb9e.js
  1. Ran the library tests (npx jest) before and after:
Test Suites: 1 passed, 1 total
Tests:       2 passed, 2 total

@carlosmiceli carlosmiceli self-assigned this Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@carlosmiceli

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

exfy-clabot Bot added a commit to Expensify/CLA that referenced this pull request Dec 1, 2026
@carlosmiceli
carlosmiceli marked this pull request as ready for review December 1, 2026 16:13
@carlosmiceli
carlosmiceli requested a review from a team December 1, 2026 16:13
@expensify-chore-bot
expensify-chore-bot Bot requested review from tylerkaraszewski and removed request for a team December 1, 2026 16:14
@tylerkaraszewski

Copy link
Copy Markdown
Contributor

conflicts.

@carlosmiceli

Copy link
Copy Markdown
Contributor Author

@MelvinBot fix conflicts

…-postcss

# Conflicts:
#	example/package.json
@carlosmiceli

Copy link
Copy Markdown
Contributor Author

@tylerkaraszewski sorry bout that, ready again

@tylerkaraszewski
tylerkaraszewski merged commit b27a9ba into main Dec 1, 2026
5 of 6 checks passed
@tylerkaraszewski
tylerkaraszewski deleted the carlos-update-example-postcss branch December 1, 2026 23:03
@os-botify

os-botify Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

🚀 Published to npm in 1.0.44 🎉

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.

3 participants