From 823204c399149cc149f7a5c31bf93bd6fd729e28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Tue, 14 Jul 2020 12:34:24 +0200 Subject: [PATCH] fix: build.transpile should be an array Resolves #115 --- lib/module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/module.js b/lib/module.js index f1cc943..071b271 100755 --- a/lib/module.js +++ b/lib/module.js @@ -142,7 +142,7 @@ function httpModule (_moduleOptions) { nuxt.options.alias['ky-universal'] = path.resolve(__dirname, '../ky-universal') // Transpile ky and ky-universal - nuxt.options.build.transpile = nuxt.options.build.transpile || {} + nuxt.options.build.transpile = nuxt.options.build.transpile || [] nuxt.options.build.transpile.push('ky') nuxt.options.build.transpile.push('@nuxt/http')