postcss: regex throws Maximum call stack size exceeded error

Hello. We recently did a npm update on our project to find that suddenly Webpack had stopped working. After investigating the culprit is this commit https://github.com/postcss/postcss/commit/54cbf3c4847eb0fb1501b9d2337465439e849734 in postcss.

It changes the regex and this creates an error with big files.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 20 (10 by maintainers)

Most upvoted comments

The fix was released in 8.3.10.

@yetingli I changed your suggestion from https://github.com/postcss/postcss/pull/1647 164eb37 Can you check that it doesn’t have security issues?

@AlexisFinn can you open node_modules/postcss/lib/previous-map.js, replace content with file from GitHub’s main and check that it fixed the problem?