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
Remove package.json from browser build #847
Comments
It looks like this issues is caused by how Webpack is interacting with the
However, the latter syntax produces better results. The latter implementation only embeds |
This change decreases the file size of both |
We dynamically import version numbers from
package.json
so that Tesseract.js always loads the appropriate version ofworker.min.js
and Tesseract.js-core. However, it looks like the entire contents ofpackage.json
are being embedded in both the browser versions oftesseract.min.js
andworker.min.js
by webpack (not just the version numbers). This probably inflates file sizes by a few kb for each file.The text was updated successfully, but these errors were encountered: