Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defer mapboxgl dependency to runtime #86

Merged
merged 6 commits into from
Aug 17, 2016
Merged

Defer mapboxgl dependency to runtime #86

merged 6 commits into from
Aug 17, 2016

Conversation

tmcw
Copy link
Contributor

@tmcw tmcw commented Aug 16, 2016

  • Removes dependency on mapboxgl.Directions. Vendors that library. This is so that I can fix bugs in it without a new release, and so that the two modules can share modules and avoid build systems messups.
  • Removes require-time dependency on mapboxgl. This is not a guarantee with webpack and other systems, and the previous check was broken ( mapboxgl global check will crash #84 ) in both modules ( Plugin not taking the clicked position #53 )
  • That's it, trying to make this the smallest possible change required to make mapbox-gl-directions friendly with webpack async loading

@tadjohnston
Copy link

👍 this is working flawlessly now on both 0.21.0 and 0.22.0 for webpack.

@tadjohnston
Copy link

@tmcw if we can cut a new version 2.1.1 (only bug fixes right?) based off this PR that would be great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants