Created
March 5, 2021 06:18
-
-
Save marteinn/af80128e48f64e0e39f26c5363afc4b5 to your computer and use it in GitHub Desktop.
How to add IE11 css variables polyfill in Next.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Polyfills | |
if (typeof window !== 'undefined') { | |
require("ie11-custom-properties"); | |
} | |
function MyApp({ Component, pageProps, err }) { | |
return <Component {...pageProps} err={err} />; | |
} | |
export default MyApp; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment