#Bun.build: No error output on fail

1 messages · Page 1 of 1 (latest)

celest estuary
#

For some reason when I build my project and the build fails due to errors in source, there are no errors in the console - it just does not output the bundle. Here is a relevant function:
https://github.com/phenomen/foundry-vtt-ru/blob/aaf0f1bfe6623d66f4f7b0415591f3b7dacf305e/index.ts#L51-L63

Am I supposed to catch errors in some other way?

GitHub

Russian Localization for Foundry Virtual Tabletop. Contribute to phenomen/foundry-vtt-ru development by creating an account on GitHub.

hardy daggerBOT
normal cairn
#

I used to get this error when one of my entrypoints was misnamed or didnt exist, it doesnt produce any console errors by default but I was reviewing someones project and I saw they had their build step like

const { logs, success } = await Bun.build({
        entrypoints: entryPaths,
        outdir: "./build",
        minify: true
    });

    if (!success) {
        throw new AggregateError(logs);
    }

maybe try this and see if it logs out the errors you get cause i looked at your repo the path looks right

celest estuary