with-react-intl example isn't working on IE11
Should add the polyfill for React-Intl on IE11
_react-intl, intl-messageformat, intl-messageformat-parser_


Any third party modules you import, you must transpile them if you need them to be valid ES5 syntax:
next.config.js:
module.exports = {
webpack: (config, { defaultLoaders }) => {
const filesToTranspile = ['react-intl'];
config.module.rules.push({
test: /\.(js|jsx)$/,
include: file => {
const re = new RegExp(`node_modules/((${filesToTranspile.join('|')})/).*`);
return re.test(file);
},
use: [defaultLoaders.babel],
});
return config;
},
}
There is a feature request for Next to build some of this functionality in: https://github.com/zeit/next.js/issues/706
@jamesmosier nice, it works with
config.module.rules.push({
test : /\.(js|jsx)$/,
include : [path.resolve(__dirname, './node_modules/react-intl')],
use : [defaultLoaders.babel],
});
the app still broken but i think is a session cookies issue. 馃槄
thanks!
Most helpful comment
Any third party modules you import, you must transpile them if you need them to be valid ES5 syntax:
next.config.js:There is a feature request for Next to build some of this functionality in: https://github.com/zeit/next.js/issues/706