Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

110
Views
webpack how to add warning for unsupported code for old browsers

I'm using Symfony's Webpack Encore to transpile my front app made with VueJS, and I've added browserlist to handle new javascript features on old browsers that we want to support.

For example, using coalesce operator const test = item ?? ''; is transpiled like this var test = item !== null && item !== void 0 ? item : ''; and everything works fine.

But I encounter an issue with replaceAll() that is not supported on Safari's old versions, and unfortunately, it is not replaced by some compatible code on transpilation, and so it leads to a blank page with an error e.replaceAll is not a function.

How can I configure Webpack or Eslint to get a warning when using functions like replaceAll() that are not supported by old browsers as defined in my browserlist?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!