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
Documentation Is:
The JavaScript API usage example looks too simplified. It lacks proper handling of multiple output formats and error handling.
I would suggest to update the usage example to something along the lines:
let build: RollupBuild; let buildFailed = false; try { build = await rollup(input); // Generating multiple bundle types for (const outputOptions of outputs) { await build.write(outputOptions); } } catch (error) { errorReporter(error); buildFailed = true; } finally { if (build) { await build.close(); } } process.exit(buildFailed ? 1 : 0);
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Documentation Is:
Please Explain in Detail...
The JavaScript API usage example looks too simplified. It lacks proper handling of multiple output formats and error handling.
Your Proposal for Changes
I would suggest to update the usage example to something along the lines:
The text was updated successfully, but these errors were encountered: