Next.js Discord

Discord Forum

es5 transpiling: optional chaining babel plugin

Unanswered
Orinoco Crocodile posted this in #help-forum
Open in Discord
Orinoco CrocodileOP
Hey guys, I’m trying to transpile optional chaining from an non package on yarn build, using presets “next/babel” and “@babel/preset-env”, with that aforementioned plugin. However when opening the dist in an older browser, I’m still getting the “Uncaught SyntaxError: Unexpected token .” error. Anyone have some insight as to whether this should be theoretically possible?

0 Replies