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

As v1.2.0 uses ES6, .default needs to be added #996

Open
wants to merge 1 commit into
base: release-v1.2.0
Choose a base branch
from

Conversation

akirahrkw
Copy link

This is just README.md fix
When you call require method, .default needs to be added, as v1.2.0 uses ES6

Before:
var MapboxDraw = require('@mapbox/mapbox-gl-draw’);

After:
var MapboxDraw = require('@mapbox/mapbox-gl-draw').default;

But this change might broke the compatibility with previous versions?

…fault

Before:
var MapboxDraw = require('@mapbox/mapbox-gl-draw’);

After:
var MapboxDraw = require('@mapbox/mapbox-gl-draw').default;
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.

1 participant