File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -82,9 +82,13 @@ export async function rollupScript (params) {
82
82
supportsMozProxies = false
83
83
} = params
84
84
85
- const trackerLookupData = readFileSync ( './build/tracker-lookup.json' , 'utf8' )
86
85
const extensions = [ 'firefox' , 'chrome' , 'chrome-mv3' ]
87
- const trackerLookup = extensions . includes ( platform ) ? '$TRACKER_LOOKUP$' : trackerLookupData
86
+ const isExtension = extensions . includes ( platform )
87
+ let trackerLookup = '$TRACKER_LOOKUP$'
88
+ if ( ! isExtension ) {
89
+ const trackerLookupData = readFileSync ( './build/tracker-lookup.json' , 'utf8' )
90
+ trackerLookup = trackerLookupData
91
+ }
88
92
// The code is using a global, that we define here which means once tree shaken we get a browser specific output.
89
93
const mozProxies = supportsMozProxies
90
94
const plugins = [
You can’t perform that action at this time.
0 commit comments