maplibre-gl-js icon indicating copy to clipboard operation
maplibre-gl-js copied to clipboard

standard-minifier-js of Meteor.js remove Promise

Open rtalon83 opened this issue 2 months ago • 2 comments

A Meteor.js v2.5.8 web application using MapLibre 4.1.2 to show a simple map in a dashboard. Simple mongo links and show differents layers. In development mode all is ok. But, When is production mode the app not run.

dist/maplibre-gl.js has this functions:

image

Promise is changed for arbitrary variable/string, in this case 'n'

image

maplibre-gl-js version: 4.1.2

browser: Chrome 123.0.6312.123

Steps to Trigger Behavior

  1. Create a new package from Meteor.js adding maplibre-gl library
  2. Set this package in packages folder.
  3. Build in production mode
  4. Map is visible but the communications are broken.

Consider using the non-minified version for this demo to create better error messages. E.g. <script src='https://unpkg.com/[email protected]/dist/maplibre-gl-dev.js'></script><link href='https://unpkg.com/[email protected]/dist/maplibre-gl.css' rel='stylesheet' />

See https://stackoverflow.com/help/mcve for guidelines on creating an effective example. -->

Expected Behavior

Actual Behavior

rtalon83 avatar Apr 15 '24 12:04 rtalon83