Skip to content

Commit

Permalink
fix: check if options is a thing
Browse files Browse the repository at this point in the history
  • Loading branch information
manniL committed Jan 9, 2019
1 parent fcf2af6 commit ec9999f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const logger = require('consola').withScope('nuxt-svg-loader')
export default function nuxtSvgLoader() {
const { svgLoader: options } = this.options

if (options.svgo && !options.svgoConfig) {
if (options && options.svgo && !options.svgoConfig) {
options.svgoConfig = options.svgo
}

Expand Down

0 comments on commit ec9999f

Please sign in to comment.