-
Notifications
You must be signed in to change notification settings - Fork 62
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
Adding a debug mode #117
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While using this externals package I ran into an issue where packages weren't bundled that were suppose too.
It turned out to be a mistake by me, but it was far from obvious.
A use case to illustrate:
We are using the package
accessible-autocomplete
but in the code it's actually imported asaccessible-autocomplete/preact
. When I added"accessible-autocomplete"
to theallowlist
it didn't include it in the bundle.After a bit too many hours, I ended up debugging this package and found the problem.
Debug mode
It would be nice to add a debug mode to this package that will output exactly which packages were included and excluded from the bundle.
It could output a simple for formatted list like this:
Or an detailed list of the internal results from these two checks:
See here. They include regex and string comparison checks that will easily fail on typos or a slightly different naming like the use case above.
What do the contributors think? I'm happy to create a PR and propose something.
The text was updated successfully, but these errors were encountered: