Skip to content

Commit ec9999f

Browse files
fix: check if options is a thing
1 parent fcf2af6 commit ec9999f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const logger = require('consola').withScope('nuxt-svg-loader')
33
export default function nuxtSvgLoader() {
44
const { svgLoader: options } = this.options
55

6-
if (options.svgo && !options.svgoConfig) {
6+
if (options && options.svgo && !options.svgoConfig) {
77
options.svgoConfig = options.svgo
88
}
99

0 commit comments

Comments
 (0)