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

fix webpack config problem caused by breaking changes of worker-loader #12244

Merged
merged 1 commit into from
Aug 21, 2020

Conversation

yangjiang3973
Copy link
Contributor

Hi, this is my first time to contribute to pdf.js. I already read the Contributing wiki and try to follow it. But if I made any mistake please let me know. Thanks!

The problem is caused by a breaking change from worker-loader(https://github.com/webpack-contrib/worker-loader/releases/tag/v3.0.0). It switches on ES module syntax by default now, so if pdfjs webpack config still uses CommonJS module, esModule=false need to be set for worker-loader.

@yangjiang3973 yangjiang3973 marked this pull request as draft August 19, 2020 09:12
@yangjiang3973 yangjiang3973 marked this pull request as ready for review August 19, 2020 09:12
@timvandermeij timvandermeij merged commit 1ff578c into mozilla:master Aug 21, 2020
@timvandermeij
Copy link
Contributor

Looks good to me; thanks!

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

Successfully merging this pull request may close these issues.

2 participants