-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Use named exports for style-spec entrypoint module #6601
Labels
Comments
cc @mapbox/maps-api |
anandthakker
pushed a commit
that referenced
this issue
May 3, 2018
anandthakker
pushed a commit
that referenced
this issue
May 3, 2018
anandthakker
added a commit
that referenced
this issue
May 3, 2018
anandthakker
added a commit
that referenced
this issue
May 3, 2018
anandthakker
added a commit
that referenced
this issue
May 3, 2018
* Fix style-spec build (#6575) * Ensure style-spec is published with mapbox-gl (#6586) Cherry pick 478dd56 from master * Ensure style spec is published with build Closes #6433 Closes #6574 * Consolidate build unit test commands * Workaround CI image path bash/sh issue mapbox/mbgl-ci-images#17 * Bump style-spec version to 12.0.0-pre.1 (#6595) * Use named exports in style-spec.js (#6602) Cherry pick e83054f from master Fixes #6601 * Ignore whole /dist/ directory Done in master with e83054f
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, because style-spec.js uses a default export, the compiled bundle's exports are behind
default
-- i.e., you have to doconst validate = require('style-spec').default.validate
instead ofconst validate = require('style-spec').validate
.Switching to named exports should restore the expected bundling behavior, and anyway is in line with #6336
The text was updated successfully, but these errors were encountered: