summaryrefslogtreecommitdiffstats
path: root/toolkit/content/vendor/lit/0003-Disable-source-maps.patch
blob: 50a44aab32a1c178f5b3ef1b41fc2f9b750b680d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
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)