From cf1a03f99a2591bd60160292864b7e16f86eb5cf Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 17 May 2021 20:42:07 +0200 Subject: [PATCH] fix: transpile defu fixes unjs/defu#28 --- lib/module.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/module.js b/lib/module.js index 5bcf9e37..401403a6 100755 --- a/lib/module.js +++ b/lib/module.js @@ -37,6 +37,9 @@ function axiosModule (_moduleOptions) { defaultHost = 'localhost' } + // Transpile defu (IE11) + nuxt.options.build.transpile.push('defu') + // Default prefix const prefix = process.env.API_PREFIX || moduleOptions.prefix || '/'