Just say that I am creating an addon that is shared with other users and I need to import ember data.
import DS from 'ember-data';
How can I import this if it does not exist in the client code. Basically I need a condition to check if the data of the ember data is available if they import it and do something, otherwise do not do this.
if(ember data exists) { //do something }
source share