Snippets Collections
// Of course, before that, you should install @babel/plugin-proposal-optional-chaining
// npm i -D @babel/plugin-proposal-optional-chaining


// in nuxt.config.js
{
  // ...
  build: {
    // ....
    babel: {
      plugins: [
        '@babel/plugin-proposal-optional-chaining'
      ]
    }
  }
}


star

Thu Mar 18 2021 15:50:53 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/61652964/nuxt-using-optional-chaining-operator-operator

#javascript #nuxtjs #babel #es2020

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension