Open cammanderson opened 7 years ago
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.