From 205331e66094aef3d1d15f58992e5aefe2898722 Mon Sep 17 00:00:00 2001 From: RubenVanEldik <25854734+RubenVanEldik@users.noreply.github.com> Date: Mon, 9 May 2022 10:30:59 +0200 Subject: [PATCH] Add @babel/plugin-proposal-nullish-coalescing-operator to babel.config.js Add @babel/plugin-proposal-nullish-coalescing-operator to babel.config.js so the nullish coalescing operators are transpiled to their polyfill --- babel.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/babel.config.js b/babel.config.js index 880dce4..04802b3 100644 --- a/babel.config.js +++ b/babel.config.js @@ -2,4 +2,7 @@ const devPresets = ['@vue/babel-preset-app']; const buildPresets = ['@babel/preset-env']; module.exports = { presets: (process.env.NODE_ENV === 'development' ? devPresets : buildPresets), + plugins: [ + "@babel/plugin-proposal-nullish-coalescing-operator" + ], };