Source code

Revision control

Copy as Markdown

Other Tools

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)