Importing the web-animations polyfill

Hi everyone,

I’m currently working on an app using web-animations via the angular 2 animation modules.
For this, I was trying to include the web-animations polyfill via npm.

According to the docs, the recommended way to include external libraries would be through the client/compatibility directory or the import/startup/client directory, but all this doesn’t seem to work.

Has anyone run into this issue as well and found a solution? I’d be glad about further directions!

Thanks,
jnncks

Update: I’ve just realised that it actually does work via the client/compatibility approach. It just seems that my animation is broken in Edge…

So, for anyone wondering: add a file polyfill.js (or index.js or any other .js-file) to the client/compatibility directory containing:

require('web-animations-js/web-animations.min');