You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right, we'll look into it. The root cause is probably the assert module, which gets treeshaken away in the production build, but causes problems in the development one.
While we still want to fix the dev build for webpack, the better option for this case is to use mapbox-gl/dist/mapbox-gl-unminified build instead of the dev one — it was created specifically for this purpose. It's like the production build (tree-shaken and without asserts) but not minified so that you can use your own minification setup.
refs #4359 - fixed this for the nondev version of mapbox code
mapbox-gl: 0.51
uglify-js: 3.4.9
webpack: 4.26.0
When you use uglifyJs with the dev version of the code minification fails with an
error.
The text was updated successfully, but these errors were encountered: