How to exclude specific libs from babel transpilation on Metro (Expo Web)

I am developing an Expo web project using Expo Router and Metro as a bundler. On the project, I want to use the Mapbox GL, but if I try to import it, an error occurs because it is distributed as an ES6. The doc says that it should be excluded from transpilation.

In the case of Webpack, we can set the following to not transpile, but how do I do the same thing in the case of Metro Bundler?

use: {
  loader: 'babel-loader',
  options: {
?    ..,
    ignore: [ './node_modules/mapbox-gl/dist/mapbox-gl.js' ]