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?