diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /toolkit/content/vendor/lit/0003-Disable-source-maps.patch | |
parent | Initial commit. (diff) | |
download | firefox-esr-upstream.tar.xz firefox-esr-upstream.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/content/vendor/lit/0003-Disable-source-maps.patch')
-rw-r--r-- | toolkit/content/vendor/lit/0003-Disable-source-maps.patch | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/toolkit/content/vendor/lit/0003-Disable-source-maps.patch b/toolkit/content/vendor/lit/0003-Disable-source-maps.patch new file mode 100644 index 0000000000..50a44aab32 --- /dev/null +++ b/toolkit/content/vendor/lit/0003-Disable-source-maps.patch @@ -0,0 +1,88 @@ +From 28ad29d3496d10193de7a52bd8e104e183f5df7c Mon Sep 17 00:00:00 2001 +From: Mark Striemer <mstriemer@mozilla.com> +Date: Tue, 22 Nov 2022 18:17:01 -0600 +Subject: [PATCH 3/5] Disable source maps + +--- + rollup-common.js | 16 ++++++++-------- + 1 file changed, 8 insertions(+), 8 deletions(-) + +diff --git a/rollup-common.js b/rollup-common.js +index 88d222d1..3f9e13b2 100644 +--- a/rollup-common.js ++++ b/rollup-common.js +@@ -8,7 +8,7 @@ import summary from 'rollup-plugin-summary'; + // import {terser} from 'rollup-plugin-terser'; + import copy from 'rollup-plugin-copy'; + import nodeResolve from '@rollup/plugin-node-resolve'; +-import sourcemaps from 'rollup-plugin-sourcemaps'; ++// import sourcemaps from 'rollup-plugin-sourcemaps'; + import replace from '@rollup/plugin-replace'; + import virtual from '@rollup/plugin-virtual'; + +@@ -358,7 +358,7 @@ export function litProdConfig({ + // Preserve existing module structure (e.g. preserve the "directives/" + // directory). + preserveModules: true, +- sourcemap: !CHECKSIZE, ++ // sourcemap: !CHECKSIZE, + }, + external, + plugins: [ +@@ -394,7 +394,7 @@ export function litProdConfig({ + }), + // This plugin automatically composes the existing TypeScript -> raw JS + // sourcemap with the raw JS -> minified JS one that we're generating here. +- sourcemaps(), ++ // sourcemaps(), + // terser(terserOptions), + summary({ + showBrotliSize: true, +@@ -434,7 +434,7 @@ export function litProdConfig({ + dir: `${outputDir}/node`, + format: 'esm', + preserveModules: true, +- sourcemap: !CHECKSIZE, ++ // sourcemap: !CHECKSIZE, + }, + external, + plugins: [ +@@ -453,7 +453,7 @@ export function litProdConfig({ + 'const ENABLE_SHADYDOM_NOPATCH = false', + }, + }), +- sourcemaps(), ++ // sourcemaps(), + // We want the production Node build to be minified because: + // + // 1. It should be very slightly faster, even in Node where bytes +@@ -496,7 +496,7 @@ export function litProdConfig({ + 'const NODE_MODE = false': 'const NODE_MODE = true', + }, + }), +- sourcemaps(), ++ // sourcemaps(), + summary({ + showBrotliSize: true, + showGzippedSize: true, +@@ -534,7 +534,7 @@ const litMonoBundleConfig = ({ + file: `${output || file}.js`, + format, + name, +- sourcemap: !CHECKSIZE, ++ // sourcemap: !CHECKSIZE, + sourcemapPathTransform, + }, + plugins: [ +@@ -562,7 +562,7 @@ const litMonoBundleConfig = ({ + }), + // This plugin automatically composes the existing TypeScript -> raw JS + // sourcemap with the raw JS -> minified JS one that we're generating here. +- sourcemaps(), ++ // sourcemaps(), + // terser(terserOptions), + summary({ + showBrotliSize: true, +-- +2.37.1 (Apple Git-137.1) + |