zaphyra's git: oeffisearch

fast and simple tripplanner

commit 198477b7c8bfd67dd51f6dc57aa6d7eff792ac43
parent 1475ec684e3465fc9f5f81b78c5f5f1cdc87055b
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Mon, 17 Nov 2025 01:28:29 +0100

rollup.config.js: cleanup
1 file changed, 21 insertions(+), 21 deletions(-)
M
rollup.config.js
|
42
+++++++++++++++++++++---------------------
diff --git a/rollup.config.js b/rollup.config.js
@@ -14,8 +14,8 @@ import litcssImport from 'rollup-plugin-lit-css';
 import { minify as minifyHtml } from 'html-minifier';
 import minifyHtmlLiterals from "rollup-plugin-html-literals";
 
-const __filename        = fileURLToPath(import.meta.url);
-const __dirname         = path.dirname(__filename);
+const __filename    = fileURLToPath(import.meta.url);
+const __dirname     = path.dirname(__filename);
 
 const appName       = 'Öffisearch';
 const appRepoUrl    = 'https://git.zaphyra.eu/oeffisearch';

@@ -67,6 +67,7 @@ export default {
 			values: {
 				'import {createRequire} from \'module\';': '',
 	 			'const require = createRequire(import.meta.url);': '',
+				'console.log(url);': '',
 				'process.env.DEBUG':         JSON.stringify(),
 				'process.env.HTTPS_PROXY':   JSON.stringify(),
 				'process.env.HTTP_PROXY':    JSON.stringify(),

@@ -76,29 +77,29 @@ export default {
 		replace({
 			preventAssignment: true,
 			values: {
-				'node:buffer':    'buffer',
-				'cross-fetch':    path.resolve(__dirname, 'src/shim/cross-fetch.js'),
-				'isDevServer':    isDevServer,
-				'APP_NAME':       JSON.stringify(appName),
-				'APP_REPOURL':    JSON.stringify(appRepoUrl),
-				'APP_IMPRINTURL': JSON.stringify(appImprintUrl),
-				'APP_VERSION':    JSON.stringify(gitVersion    ? gitVersion    : `0.0.0-${isDevServer ? 'dev' : 'prod'}`),
-				'APP_COMMIT':     JSON.stringify(gitCommit     ? gitCommit     : 'unknown'),
-				'APP_COMMITDATE': JSON.stringify(gitCommitDate ? gitCommitDate : (new Date).toString()),
+				'node:buffer':       'buffer',
+				'cross-fetch':       path.resolve(__dirname, 'src/shim/cross-fetch.js'),
+				'isDevServer':       isDevServer,
+				'APP_NAME':          JSON.stringify(appName),
+				'APP_REPOURL':       JSON.stringify(appRepoUrl),
+				'APP_IMPRINTURL':    JSON.stringify(appImprintUrl),
+				'APP_VERSION':       JSON.stringify(gitVersion    ? gitVersion    : `0.0.0-${isDevServer ? 'dev' : 'prod'}`),
+				'APP_COMMIT':        JSON.stringify(gitCommit     ? gitCommit     : 'unknown'),
+				'APP_COMMITDATE':    JSON.stringify(gitCommitDate ? gitCommitDate : (new Date).toString()),
 			},
 		}),
-		// Resolve bare module specifiers to relative paths
-		resolve({
-			browser: true,
-			preferBuiltins: false,
-			modulePaths: [ path.resolve(__dirname, 'src/shim') ],
-		}),
 		// css import support for lit
 		litcssImport({ cssnano: true, }),
 		// commonjs imports
 		commonjsImport({ transformMixedEsModules: true }),
 		// json import support
 		jsonImport(),
+		// Resolve bare module specifiers to relative paths
+		resolve({
+			browser: true,
+			preferBuiltins: false,
+			modulePaths: [ path.resolve(__dirname, 'src/shim') ],
+		}),
 		// Minify JS
 		!isDevServer && terser({
 			ecma: 2021,

@@ -115,10 +116,10 @@ export default {
 		  sourcemap: false
 		}),
 		// Print bundle summary
-		summary({
-			showMinifiedSize: isDevServer ?	true : false,
+		!isDevServer && summary({
+			showMinifiedSize: true,
 			showGzippedSize: true,
 			showBrotliSize: true,
 		}),
  	]
-};-
\ No newline at end of file
+};