Home

Issue: 2701

How to add a polyfil to nuxtjs ?

[issue link]

Hi everyone,

I’m trying to add the Web Animations API polyfil to nuxt js for compatibility with Safari (https://github.com/web-animations/web-animations-js), but I can’t make it work.
I installed it using npm, and now I’m trying to make it available app-wide (I use it on my main page but also in the nuxt.config.js file, for transitions).
I found instructions for Angular (https://stackoverflow.com/questions/38836532/how-to-add-web-animations-api-polyfill-to-an-angular-2-project-created-with-angu), but I don’t know how to transpose that to Nuxt.

Thanks a lot !

This question is available on Nuxt.js community (#c2347)