I'm trying to use @babel/plugin-proposal-optional-chaining
so I can do like {{ user?.name || 'Oops' }}
in my vue templates. I have added the plugin to my babel.config.js, but it still comes up with a vue-loader error. After some searching it seems like vue uses buble instead of babel for transpiling the js inside the template tag.
Is there a way to use babel instead of buble for transpiling the js in the template?