Skip to content

Commit ecd96a8

Browse files
committed
Fix errors reading from package.json
Fixes #57 Fixes #58
1 parent 1dc2198 commit ecd96a8

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
@@ -31,7 +31,7 @@ module.exports = (api, options) => {
3131
? Object.assign(defaultOptions, options.pluginOptions.browserExtension)
3232
: defaultOptions
3333
const componentOptions = pluginOptions.componentOptions
34-
const packageJson = api.resolve('package.json')
34+
const packageJson = require(api.resolve('package.json'))
3535
const isProduction = api.service.mode === 'production'
3636
const keyFile = api.resolve('key.pem')
3737
const hasKeyFile = keyExists(keyFile)

0 commit comments

Comments
 (0)