Skip to content

Export the "dist" file in npm - #4423

Merged
lucaswoj merged 3 commits into
masterfrom
BernhardRode-patch-1
Mar 14, 2017
Merged

lucaswoj merged 3 commits into
masterfrom
BernhardRode-patch-1

Conversation

@lucaswoj

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

cc @BernhardRode 😄

@lucaswoj
lucaswoj requested review from jfirebaugh and mourner and removed request for jfirebaugh and mourner 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