A simple road block. I need to use Leaflet and the Leaflet-Draw plugin in some of my services.
I don't know how to import the complete module (core and plugin)
// the core
import * as L from 'leaflet';
// extension
import 'leaflet-draw';
export class LeafletConsumerService {}
I have a solution that I don't like much. I load the libraries by hard-linking them in index.html
and the consumer simply has a reference declaration to the typings files
/// <reference path="../typings/index.d.ts" />
export class LeafletConsumerService {}
Is there no other way I can do this? is there a way to import one file that should just cause a side-effect onto an already loaded module?