-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
Update the examples/
-folder to account for outputting of JavaScript modules (PR 17055 follow-up)
#17081
Conversation
8efe5cf
to
1b8fefa
Compare
1b8fefa
to
57e644c
Compare
ba7988e
to
a7f2a6e
Compare
… modules (PR 17055 follow-up) This patch also changes most examples to use "top level await", since that's now supported and slightly simplifies the code.
- Remove the `errorWrapper`-element, since it simplifies the example and is consistent with the default viewer; see PR 15533. - Simplify the l10n-handling, since the `NullL10n` should be able to translate everything e.g. without fallback values; see PR 17146.
…modules (PR 17055 follow-up) *Please note:* While following the steps in the README still works with this patch, in the sense that the example runs and successfully renders a PDF document, I unfortunately cannot tell if it illustrates Webpack best practices.
a7f2a6e
to
d7b39fe
Compare
The only way to test this is locally, by running Hopefully we should be getting pretty close to releasing version
|
Yes, I agree it's a good idea to wait a bit longer with the final 4.0 release so we have enough time to finish up the last few issues/PRs and do more testing. I'll have a look at this PR soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work; thanks!
This patch also changes most examples to use "top level await", since that's now supported and slightly simplifies the code.