fix: last small changes

This commit is contained in:
2026-02-27 10:20:37 +01:00
parent dc62937fdc
commit c6edacba51
2 changed files with 8 additions and 7 deletions

View File

@@ -2,6 +2,7 @@ import { simpleGit } from 'simple-git';
import * as fsPromises from 'fs/promises';
import * as path from 'path';
import { execFile } from 'node:child_process';
import type { GitScriptFileChange, GitScriptFileChangeStatus } from './ScriptEngine';
export interface GitAvailability {
gitFound: boolean;
@@ -140,13 +141,7 @@ export interface GitPostFileChange {
previousPath?: string;
}
export type GitScriptFileChangeStatus = 'added' | 'modified' | 'deleted' | 'renamed';
export interface GitScriptFileChange {
status: GitScriptFileChangeStatus;
path: string;
previousPath?: string;
}
export type { GitScriptFileChange, GitScriptFileChangeStatus };
type GitProvider = 'unknown' | 'github' | 'gitlab' | 'gitea-forgejo';

View File

@@ -11,6 +11,12 @@ export default defineConfig({
emptyOutDir: true,
chunkSizeWarningLimit: 8000,
rollupOptions: {
onLog(level, log, defaultHandler) {
if (log.message.includes('has been externalized for browser compatibility') && log.message.includes('pyodide')) {
return;
}
defaultHandler(level, log);
},
input: resolve(__dirname, 'src/renderer/index.html'),
output: {
manualChunks(id) {