Skip to content
New issue

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

Validation errors are hard to read #13

Closed
jacksteamdev opened this issue Dec 5, 2019 · 1 comment · Fixed by #94
Closed

Validation errors are hard to read #13

jacksteamdev opened this issue Dec 5, 2019 · 1 comment · Fixed by #94
Assignees
Labels
enhancement New feature or request

Comments

@jacksteamdev
Copy link
Contributor

Describe the bug
As is, the validation errors we emit are not very easy to read.

To Reproduce
Steps to reproduce the behavior:

  1. Attempt to bundle a Chrome extension with an invalid manifest.
  2. Try to decipher the JSON output logged to the console.

Expected behavior
The plugin should produce a concise, easy to understand error or series of errors and abort the bundle.

Additional information
Here's the code in question:
https://github.com/bumble-org/rollup-plugin-chrome-extension/blob/0a4499fb049205540e9f4523541487b980786f33/src/manifest-input/index.ts#L397-L403

@jacksteamdev jacksteamdev added the enhancement New feature or request label Dec 5, 2019
@jacksteamdev jacksteamdev self-assigned this Dec 5, 2019
@jacksteamdev
Copy link
Contributor Author

This is a library to look into: https://github.com/atlassian/better-ajv-errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant