Revert "Minify the js code when building for Firefox (bug 1965003)"
This commit is contained in:
parent
fc68a9f3ee
commit
32789073a9
12
gulpfile.mjs
12
gulpfile.mjs
@ -490,8 +490,7 @@ function checkChromePreferencesFile(chromePrefsPath, webPrefs) {
|
|||||||
|
|
||||||
function createMainBundle(defines) {
|
function createMainBundle(defines) {
|
||||||
const mainFileConfig = createWebpackConfig(defines, {
|
const mainFileConfig = createWebpackConfig(defines, {
|
||||||
filename:
|
filename: defines.MINIFIED ? "pdf.min.mjs" : "pdf.mjs",
|
||||||
defines.MINIFIED && !defines.MOZCENTRAL ? "pdf.min.mjs" : "pdf.mjs",
|
|
||||||
library: {
|
library: {
|
||||||
type: "module",
|
type: "module",
|
||||||
},
|
},
|
||||||
@ -571,10 +570,7 @@ function createSandboxBundle(defines, extraOptions = undefined) {
|
|||||||
|
|
||||||
function createWorkerBundle(defines) {
|
function createWorkerBundle(defines) {
|
||||||
const workerFileConfig = createWebpackConfig(defines, {
|
const workerFileConfig = createWebpackConfig(defines, {
|
||||||
filename:
|
filename: defines.MINIFIED ? "pdf.worker.min.mjs" : "pdf.worker.mjs",
|
||||||
defines.MINIFIED && !defines.MOZCENTRAL
|
|
||||||
? "pdf.worker.min.mjs"
|
|
||||||
: "pdf.worker.mjs",
|
|
||||||
library: {
|
library: {
|
||||||
type: "module",
|
type: "module",
|
||||||
},
|
},
|
||||||
@ -1391,7 +1387,7 @@ gulp.task(
|
|||||||
gulp.series(
|
gulp.series(
|
||||||
createBuildNumber,
|
createBuildNumber,
|
||||||
function scriptingMozcentral() {
|
function scriptingMozcentral() {
|
||||||
const defines = { ...DEFINES, MOZCENTRAL: true, MINIFIED: true };
|
const defines = { ...DEFINES, MOZCENTRAL: true };
|
||||||
return buildDefaultPreferences(defines, "mozcentral/");
|
return buildDefaultPreferences(defines, "mozcentral/");
|
||||||
},
|
},
|
||||||
async function prefsMozcentral() {
|
async function prefsMozcentral() {
|
||||||
@ -1400,7 +1396,7 @@ gulp.task(
|
|||||||
function createMozcentral() {
|
function createMozcentral() {
|
||||||
console.log();
|
console.log();
|
||||||
console.log("### Building mozilla-central extension");
|
console.log("### Building mozilla-central extension");
|
||||||
const defines = { ...DEFINES, MOZCENTRAL: true, MINIFIED: true };
|
const defines = { ...DEFINES, MOZCENTRAL: true };
|
||||||
const gvDefines = { ...defines, GECKOVIEW: true };
|
const gvDefines = { ...defines, GECKOVIEW: true };
|
||||||
|
|
||||||
const MOZCENTRAL_DIR = BUILD_DIR + "mozcentral/",
|
const MOZCENTRAL_DIR = BUILD_DIR + "mozcentral/",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user