fix: memory issues when importing giant mrpack files (#6278)

* feat: dont load mrpacks into memory if they are local imports

* fix: frontend
This commit is contained in:
Calum H.
2026-06-02 13:59:41 +01:00
committed by GitHub
parent 6b0a0c1897
commit cfe45b368c
11 changed files with 333 additions and 92 deletions
@@ -196,9 +196,11 @@ watch(
)
async function triggerFileInput() {
const picked = await filePicker.pickModpackFile()
const picked = await filePicker.pickModpackFile({
readFile: ctx.flowType !== 'instance',
})
if (picked) {
ctx.modpackFile.value = picked.file
ctx.modpackFile.value = picked.file ?? null
ctx.modpackFilePath.value = picked.path ?? null
proceedWithModpack()
}