I am using svg.js alongside svg.draggable.js in a Angular 7 application built using Angular-cli. Locally everything is working fine but once i do a production build I get the error .draggable is not a function when accesing the page.
Here's how I use both of them in my component:
import * as SvgJs from '@svgdotjs/svg.js';
import '@svgdotjs/svg.draggable.js';
It's like if for the production build Angular-cli is not including svg.draggable.
Maybe I need to do something more but as it's working locally I don't really know what. Does anyone knows why it happens and how to solve this?
Maybe it's not related to svg.draggable.js specifically but to Angular-cli by the way but I have no clue.