-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Consider moving Webpack support to a separate package #9580
Comments
I believe the correct solution is outlined here: #9733. |
@nfantone yes, I don't see any reason for It is been 1 year+ not sure if there is any fix for it, it is not major, but it is not really something need big efforts to solve either, just removing https://github.com/mozilla/pdfjs-dist/blob/master/package.json#L19 |
Given the discussion on IRC at https://mozilla.logbot.info/pdfjs/20180606#c14862530-c14862634 it looks like splitting off Webpack into a separate package is a better option, or perhaps even removing the Webpack bundling altogether. I'm personally not too familiar with Webpack bundling, but that's what I infer from the discussion. @yurydelendik Do you have an opinion on this? The current situation is not ideal because of the peer dependency and removing that is also not ideal given that warnings will pop up (see #9248). Is there a particular reason to keep the Webpack example in there? |
Do you really want I see it is used here: https://github.com/mozilla/pdfjs-dist/blob/master/webpack.js#L18 This is the first time I see webpack published in distribution, for something should be working in the client side, as webpack as I know working for building the distribution not part of it. |
Closing since the pull request above removed this dependencies altogether now. |
I propose moving webpack.js to a separate package.
Why?
If someone is instaling pdf.js, while NOT using Webpack, they will see the following warnings:
By doing so, we could get rid of
worker-loader
andwebpack
dependencies, making required download/build time/test time significantly smaller.The text was updated successfully, but these errors were encountered: