summaryrefslogtreecommitdiffstats
path: root/toolkit/content/vendor/lit/0003-Disable-source-maps.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /toolkit/content/vendor/lit/0003-Disable-source-maps.patch
parentInitial commit. (diff)
downloadfirefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz
firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
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.patch88
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)
+