We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Parsed sizes not working for utf8 with bom files
const BomPlugin = require("webpack-utf8-bom"); const BundleAnalyzerPlugin = require("webpack-bundle-analyzer").BundleAnalyzerPlugin; plugins: [ new BomPlugin(true), new BundleAnalyzerPlugin({ analyzerMode: "static", openAnalyzer: false, }), ... ],
The text was updated successfully, but these errors were encountered:
What do you mean by "not working"? What error it shows? Could you create a minimal reproduction repo?
Sorry, something went wrong.
test repo: https://github.com/nextgennexia/bundleAnalyzerWithBom
if set plugins new BomPlugin(true) http://joxi.ru/DmBM8Z5FJW5Xar else http://joxi.ru/DmBM8Z5FJWvdar
new BomPlugin(true)
So it looks like when the generated output contains a BOM mark:
The generated chartData looks like this: https://github.com/nextgennexia/bundleAnalyzerWithBom/blob/f8909a47bf1def86e08653269ea02e1712d91710/bundles/report.html#L59
chartData
window.chartData = [ { label: 'SearchResults.js', isAsset: true, statSize: 20, parsedSize: 0, gzipSize: 20, groups: [{ id: 0, label: 'index.js', path: './index.js', statSize: 20 }] } ];
So for some reason the parsedSize ends up being 0 for the input module https://github.com/nextgennexia/bundleAnalyzerWithBom/blob/f8909a47bf1def86e08653269ea02e1712d91710/index.js#L1
parsedSize
No branches or pull requests
Issue description
Parsed sizes not working for utf8 with bom files
Technical info
Debug info
The text was updated successfully, but these errors were encountered: