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