@@ -490,8 +490,7 @@ function checkChromePreferencesFile(chromePrefsPath, webPrefs) {
490
490
491
491
function createMainBundle ( defines ) {
492
492
const mainFileConfig = createWebpackConfig ( defines , {
493
- filename :
494
- defines . MINIFIED && ! defines . MOZCENTRAL ? "pdf.min.mjs" : "pdf.mjs" ,
493
+ filename : defines . MINIFIED ? "pdf.min.mjs" : "pdf.mjs" ,
495
494
library : {
496
495
type : "module" ,
497
496
} ,
@@ -571,10 +570,7 @@ function createSandboxBundle(defines, extraOptions = undefined) {
571
570
572
571
function createWorkerBundle ( defines ) {
573
572
const workerFileConfig = createWebpackConfig ( defines , {
574
- filename :
575
- defines . MINIFIED && ! defines . MOZCENTRAL
576
- ? "pdf.worker.min.mjs"
577
- : "pdf.worker.mjs" ,
573
+ filename : defines . MINIFIED ? "pdf.worker.min.mjs" : "pdf.worker.mjs" ,
578
574
library : {
579
575
type : "module" ,
580
576
} ,
@@ -1391,7 +1387,7 @@ gulp.task(
1391
1387
gulp . series (
1392
1388
createBuildNumber ,
1393
1389
function scriptingMozcentral ( ) {
1394
- const defines = { ...DEFINES , MOZCENTRAL : true , MINIFIED : true } ;
1390
+ const defines = { ...DEFINES , MOZCENTRAL : true } ;
1395
1391
return buildDefaultPreferences ( defines , "mozcentral/" ) ;
1396
1392
} ,
1397
1393
async function prefsMozcentral ( ) {
@@ -1400,7 +1396,7 @@ gulp.task(
1400
1396
function createMozcentral ( ) {
1401
1397
console . log ( ) ;
1402
1398
console . log ( "### Building mozilla-central extension" ) ;
1403
- const defines = { ...DEFINES , MOZCENTRAL : true , MINIFIED : true } ;
1399
+ const defines = { ...DEFINES , MOZCENTRAL : true } ;
1404
1400
const gvDefines = { ...defines , GECKOVIEW : true } ;
1405
1401
1406
1402
const MOZCENTRAL_DIR = BUILD_DIR + "mozcentral/" ,
0 commit comments