I'm trying to import PapaParse and use it inside a controller. This is what i tried so far:
import Papa from 'papaparse';
//import 'papaparse'; (tried it like this also)
angular.module('app').constant('Papa', window.Papa);
I think this is the right way to do it, but window.Papa is already undefined. What am i doing wrong?