Been trying to add the smoothscroll-polyfill to my Angular 4 app built using the Angular CLI. Figured out it needs to go in polyfill.ts, but their docs indicate it needs to be added like:
require('smoothscroll-polyfill').polyfill()
As does this StackOverflow answer, but Angular CLI throws an error saying require doesn't exist. I also tried to import it several different ways, but this didn't work either, for example:
import 'smoothscroll-polyfill/dist/polyfill.js'
Any ideas how I might add this to my Angular 4 application?