File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
- const path = require ( 'path' )
2
1
const { generateKey } = require ( '../lib/signing-key' )
3
2
const { renderDomain, renderGitignore, renderTs } = require ( '../lib/render' )
4
3
@@ -13,12 +12,12 @@ module.exports = (api, _options) => {
13
12
const fileExt = hasTs ? 'ts' : 'js'
14
13
15
14
browserExtension . componentOptions = { }
16
- if ( browserExtension . components . background ) {
15
+ if ( _options . components . background ) {
17
16
browserExtension . componentOptions . background = {
18
17
entry : `src/background.${ fileExt } `
19
18
}
20
19
}
21
- if ( browserExtension . components . contentScripts ) {
20
+ if ( _options . components . contentScripts ) {
22
21
browserExtension . componentOptions . contentScripts = {
23
22
entries : {
24
23
'content-script' : [ `src/content-scripts/content-script.${ fileExt } ` ]
@@ -46,7 +45,7 @@ module.exports = (api, _options) => {
46
45
api . extendPackage ( pkg )
47
46
48
47
const { name, description } = require ( api . resolve ( 'package.json' ) )
49
- const options = Object . assign ( { } , browserExtension )
48
+ const options = Object . assign ( { } , _options )
50
49
options . name = name
51
50
options . description = description
52
51
// options.hasRouter = hasRouter
You can’t perform that action at this time.
0 commit comments