Create map module using MapBox

Hello,

I need your help. I’m trying to create a UX module using Mapbox to integrate a map into my supervision system.

I first added Mapbox to my package and copied the JS/CSS files into the vendor folder, but I got a file size error.
Then I tried using a CDN, but I had a CSP error.

I fixed the CSP issue by adding script-src in my station services configuration, but now I’m getting another error.

Is it possible to integrate Mapbox this way?