Skip to content

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