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
Mapbox no longer encourage building of mapbox gl js using webpack. They suggest that their supplied dist version should be directly required.
Examples of the webpack configuration here use alias to map the library to the dist file as needed. This became a "gotcha" (as in issue #2 which could be made smoother.
Update to require the dist file in source completely, minimising the need to set noParse and alias configurations in webpack.
The text was updated successfully, but these errors were encountered:
A consideration for implementing this at the library level is that it locks the build approach to only using the supplied dist file - which is necessary for systemjs and webpack, but not necessary for browserify. Making this change would stop browserify being able to build.
Mapbox no longer encourage building of mapbox gl js using webpack. They suggest that their supplied dist version should be directly required.
Examples of the webpack configuration here use alias to map the library to the dist file as needed. This became a "gotcha" (as in issue #2 which could be made smoother.
Update to require the dist file in source completely, minimising the need to set noParse and alias configurations in webpack.
The text was updated successfully, but these errors were encountered: