Good, quick and dirty solution. This answer will work if you start your project with quickstart repo . Go to system.config.extras.js and expand your configuration as such:
System.config({ map: { 'leaflet': 'npm:leaflet/dist/leaflet.js' }, packages: { leaflet: { defaultExtension: 'js' }, } });
this means that we can now import the booklet as such
import * as L from 'leaflet';
and add the appropriate extension files as described
import 'your-leaflet-extension';
Remember to expand the type information for your extensions (via a typing file or make your own)
source share