From ec2eb0ae8642aaa3f3e51505f4ec86b699d09d90 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Wed, 26 May 2021 20:24:23 +0200 Subject: [PATCH] fix: only transpile defu for client bundle (resolves #501) --- lib/module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/module.js b/lib/module.js index e073d23..36d41dd 100755 --- a/lib/module.js +++ b/lib/module.js @@ -39,7 +39,7 @@ function axiosModule (_moduleOptions) { // Transpile defu (IE11) if (nuxt.options.build.transpile /* nuxt 1 */) { - nuxt.options.build.transpile.push('defu') + nuxt.options.build.transpile.push(({ isClient }) => isClient && 'defu') } // Default prefix