fix: build.transpile should be an array

Resolves #115
master
Sébastien Chopin 2020-07-14 12:34:24 +02:00
parent fdbdb032b3
commit 823204c399
1 changed files with 1 additions and 1 deletions

View File

@ -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')