We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I use build method with config incremental: true,such as:
incremental: true
const esbuild = require('esbuild'); const path = require('path'); async function main() { try { const instance = await esbuild.build({ incremental: true, bundle: true, minify: false, watch: true, entryPoints: [path.join(__dirname, './index.ts')], }); console.log(`重编译实例:${!!instance}`); } catch (e) { console.log(e); } } main();
If the first build occurs a error, for example, the code in index.ts:
index.ts
let let
I can't get result of esbuild.build, it will be into catch statement.
esbuild.build
catch
I think do not throw errors here and set errors to errors property of result, it can be better.
errors
The text was updated successfully, but these errors were encountered:
I think it's better not throwing error under watch mode at first build.
watch
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
When I use build method with config
incremental: true
,such as:If the first build occurs a error, for example, the code in
index.ts
:I can't get result of
esbuild.build
, it will be intocatch
statement.I think do not throw errors here and set errors to
errors
property of result, it can be better.The text was updated successfully, but these errors were encountered: