Skip to content

Commit fc1669f

Browse files
committed
Fixed runtime bug for trying to access nonexisting property
1 parent 58c5499 commit fc1669f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const defaultOptions = { components: {} }
1010

1111
module.exports = (api, options) => {
1212
const appRootPath = api.getCwd()
13-
const pluginOptions = options.pluginOptions.browserExtension ? options.pluginOptions.browserExtension : defaultOptions
13+
const pluginOptions = options.pluginOptions.browserExtension ? options.pluginOptions.browserExtension.options : defaultOptions
1414
const { name, version } = require(path.join(appRootPath, 'package.json'))
1515
const isDevelopment = api.service.mode === 'development'
1616
const isProduction = api.service.mode === 'production'

0 commit comments

Comments
 (0)