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

Print more warnings about potential problems in Node.js environments #19191

Merged
merged 1 commit into from
Dec 7, 2024

Conversation

Snuffleupagus
Copy link
Collaborator

  • Warn if the "regular" PDF.js build is used in Node.js environments, since that won't load any of the relevant polyfills.

  • Warn if the require function cannot be accessed, since currently we're just "swallowing" any errors.

 - Warn if the "regular" PDF.js build is used in Node.js environments, since that won't load any of the relevant polyfills.

 - Warn if the `require` function cannot be accessed, since currently we're just "swallowing" any errors.
@timvandermeij timvandermeij merged commit 3f1d07a into mozilla:master Dec 7, 2024
9 checks passed
@timvandermeij
Copy link
Contributor

Thank you for improving this!

@Snuffleupagus Snuffleupagus deleted the Node-legacy-warn branch December 7, 2024 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants