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

Export the "dist" file in npm #4423

Merged
merged 3 commits into from
Mar 14, 2017
Merged

Export the "dist" file in npm #4423

merged 3 commits into from
Mar 14, 2017

Conversation

lucaswoj
Copy link
Contributor

Brought into this repository from #4391

When installing mapbox-gl via npm and importing the library like:

import * as mapboxgl from 'mapbox-gl';

The npm resolver is looking for tha main attribute in package.json to further resolve the correct JavaScript file for import.

fixes #3551

@lucaswoj lucaswoj force-pushed the BernhardRode-patch-1 branch from 8674e9b to 08fb15f Compare March 14, 2017 19:22
@lucaswoj lucaswoj changed the title Bernhard rode patch 1 Export the "dist" file in npm Mar 14, 2017
@lucaswoj lucaswoj force-pushed the BernhardRode-patch-1 branch from 08fb15f to 3f6baf5 Compare March 14, 2017 19:24
@lucaswoj
Copy link
Contributor Author

cc @BernhardRode 😄

@lucaswoj lucaswoj requested review from mourner and jfirebaugh and removed request for mourner and jfirebaugh March 14, 2017 20:06
@lucaswoj lucaswoj merged commit 65336e2 into master Mar 14, 2017
@lucaswoj lucaswoj deleted the BernhardRode-patch-1 branch March 14, 2017 20:07
andrewharvey pushed a commit to andrewharvey/mapbox-gl-js that referenced this pull request Mar 17, 2017
* feature: export the correct js file in npm

* Fix linter

* Update bundler quickstart docs
mollymerp added a commit that referenced this pull request Mar 20, 2017
to reflect changes in #4423
jdeboer-geoplan added a commit to geoplan/mapbox-gl-js that referenced this pull request Jul 12, 2018
ghost pushed a commit to geoplan/mapbox-gl-js that referenced this pull request Feb 8, 2021
mapbox#4423 Add geoplan specific halo-overdraw functionality onto the latest version of mapbox.
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.

Make the distribution build the main NPM entry point
2 participants