Closed atp-tha closed 1 year ago
Thanks a bunch!
Actually found an issues where this breaks something:
I noticed this breaks Load Mods From Save
where we load mod names from a save (located using the green arrow next to continue).
With ts-loader we send
mainWindow.webContents.send("packsInSave", await getPacksInSave(saveName));
where we send a string[]
of mod pack names
and we then receive string[]
in renderer.ts
window.api.packsInSave((event, packNames: string[]) => {
console.log("packs in save: ", packNames);
store.dispatch(enableModsByName(packNames));
});
with swc-loader
in the renderer we receive packNames
as a string
instead of string[]
and it seems to be the value of packNames[0]
That's strange, but should we continue it here or create another issue for it? I may help sniffing around the issue if I have time.
I added @swc/core and swc-loader as dev dependencies and changed ts-loader to swc-loader in webpack config.