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

Bundle analyzer mostly saying "unknown sources" #6959

Open
mischnic opened this issue Sep 20, 2021 · 3 comments
Open

Bundle analyzer mostly saying "unknown sources" #6959

mischnic opened this issue Sep 20, 2021 · 3 comments

Comments

@mischnic
Copy link
Member

🐛 bug report

Bildschirmfoto 2021-09-20 um 12 09 44

(--detailed-report 10 behaves the same)

💻 Code Sample

yarn parcel build index.js --reporter @parcel/reporter-bundle-analyzer

{
  "dependencies": {
    "jspdf": "2.4.0"
  },
  "devDependencies": {
    "parcel": "2.0.0-nightly.841",
    "@parcel/reporter-bundle-analyzer": "2.0.0-nightly.2465"
  },
  "alias": {
    "canvg": false,
    "html2canvas": false,
    "dompurify": false
  }
}
import jspdf from "jspdf";

console.log(jspdf)

🌍 Your Environment

Software Version(s)
Parcel 2.0.0-nightly.841

cc @DeMoorJasper

@ranupratapsingh
Copy link

Hi all,
I am also facing the same issue. I am using following version of parcel & bundle analyzer.

"parcel": "^2.8.3",
"@parcel/reporter-bundle-analyzer": "^2.8.3",

I get this when I use React lazy and suspense. Can somebody else also reproduce this please ?

@mischnic
Copy link
Member Author

mischnic commented Jun 3, 2023

I think this is actually caused by whitespace, because they are indeed not mapped:

Bildschirm­foto 2023-06-03 um 17 33 36

This also explains why there is much less of "unknown sources" in minified builds.

@aminya
Copy link
Contributor

aminya commented Sep 7, 2023

Although my build is optimized/minified, I still get a big unknown source chunk. Any clue why this is happening?

image

This can be reproduced here:
aminya/setup-cpp#197

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

No branches or pull requests

3 participants