How to support backward compatibility using browserslist and babel in NextJS 13.4 ?
Unanswered
American black bear posted this in #help-forum
American black bearOP
The current SWC compiler doesn't seem to easily polyfill for the browserslist config I specify in package.json. So used babelrc to override swc for the builds. I was looking to provide backward compatibility for browsers/platforms like safari > 11,12 or minimum chrome version of 75. When I transpile manually (using npx babel) it seems to work. But doesn't help with the builds. I tried babel runtime transform plugin too. What am I doing wrong ? or how do I achieve it?
1 Reply
American black bearOP
I've been having issues with optional chaining and nullish coalescing to make it work.