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
|
From d4897981e63b8be81453088cd9ab3a6edaf8fcaf Mon Sep 17 00:00:00 2001
From: Mark Striemer <mstriemer@mozilla.com>
Date: Wed, 16 Nov 2022 22:54:20 -0600
Subject: [PATCH 1/5] disable terser step
---
rollup-common.js | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/rollup-common.js b/rollup-common.js
index b2187328..88d222d1 100644
--- a/rollup-common.js
+++ b/rollup-common.js
@@ -5,7 +5,7 @@
*/
import summary from 'rollup-plugin-summary';
-import {terser} from 'rollup-plugin-terser';
+// 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';
@@ -321,7 +321,7 @@ export function litProdConfig({
(name) => `console.log(window.${name});`
),
].join('\n');
- const nameCacheSeederTerserOptions = generateTerserOptions(nameCache);
+ // const nameCacheSeederTerserOptions = generateTerserOptions(nameCache);
const terserOptions = generateTerserOptions(
nameCache,
@@ -345,7 +345,7 @@ export function litProdConfig({
virtual({
[nameCacheSeederInfile]: nameCacheSeederContents,
}),
- terser(nameCacheSeederTerserOptions),
+ // terser(nameCacheSeederTerserOptions),
skipBundleOutput,
],
},
@@ -395,7 +395,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(),
- terser(terserOptions),
+ // terser(terserOptions),
summary({
showBrotliSize: true,
showGzippedSize: true,
@@ -466,7 +466,7 @@ export function litProdConfig({
// references properties from reactive-element which will
// otherwise have different names. The default export that
// lit-element will use is minified.
- terser(terserOptions),
+ // terser(terserOptions),
summary({
showBrotliSize: true,
showGzippedSize: true,
@@ -524,7 +524,7 @@ const litMonoBundleConfig = ({
file,
output,
name,
- terserOptions,
+ // terserOptions,
format = 'umd',
sourcemapPathTransform,
// eslint-disable-next-line no-undef
@@ -563,7 +563,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(),
- terser(terserOptions),
+ // terser(terserOptions),
summary({
showBrotliSize: true,
showGzippedSize: true,
--
2.37.1 (Apple Git-137.1)
|