Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

104
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda