Skip to content

Commit 66d56ab

Browse files
committed
fix: build.transpile guard for [email protected] (fixes #498)
1 parent 7e4a070 commit 66d56ab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/module.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ function axiosModule (_moduleOptions) {
3838
}
3939

4040
// Transpile defu (IE11)
41-
nuxt.options.build.transpile.push('defu')
41+
if (nuxt.options.build.transpile /* nuxt 1 */) {
42+
nuxt.options.build.transpile.push('defu')
43+
}
4244

4345
// Default prefix
4446
const prefix = process.env.API_PREFIX || moduleOptions.prefix || '/'

0 commit comments

Comments
 (0)