-
Notifications
You must be signed in to change notification settings - Fork 140
Open
Description
we are using babel preset env to compile, however the vue-mapbox issue of the spread operator is causing issues with edge and ie 11.
this file:
/node_modules/vue-mapbox/src/lib/withEvents.js
export default {
methods: {
/**
* Emit Vue event with additional data
*
* @param {string} name EventName
* @param {Object} [data={}] Additional data
*/
$_emitEvent(name, data = {}) {
this.$emit(name, {
map: this.map,
component: this,
...data
});
},
/**
* Emit Vue event with Mapbox event as additional data
*
* @param {Object} event
*/
$_emitMapEvent(event, data = {}) {
this.$_emitEvent(event.type, { mapboxEvent: event, ...data });
}
}
};
compiled reference {map:this.map,component:this,...e} is where the first issue is.
Metadata
Metadata
Assignees
Labels
No labels