1.next.js兼容ie11
nextjs自带对于ie11的兼容,所以自己的代码是能够兼容ie11的https://nextjs.org/docs/basic-features/supported-browsers-features,主要需要考虑第三方包中不兼容ie11的情况。
针对没有兼容ie11的三方包,我们需要配置babel进行转换:
a.nextjs提供了.bablerc.jshttps://nextjs.org/docs/advanced-features/customizing-babel-config
b.和 next.config.jshttps://nextjs.org/docs/api-reference/next.config.js/introduction,让用户自定义配置Babel和webpack
例如我选择在next.config.js的web