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

Parsed and Gzipped sizes are zero #34

Closed
rulila52 opened this issue Aug 22, 2024 · 12 comments
Closed

Parsed and Gzipped sizes are zero #34

rulila52 opened this issue Aug 22, 2024 · 12 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@rulila52
Copy link

I'm included this plugin in my vite project with minimal configuration and try to make static output. When i open static stats.html, i see correst Stat sizes, but on tabs Parsed and Gzipped i see 0 bytes for all chunk. Is it bug or i do something wrong?

@nonzzz nonzzz self-assigned this Aug 23, 2024
@nonzzz
Copy link
Owner

nonzzz commented Aug 23, 2024

It's work well in my local. If the parsed or gzip size is zero. I think you can try to provide a debug info.

$ vite build --debug

# Or use the following method
# darwin / linux

$ export ANALYZE_DEBUG=true && vite build

# window

$ set ANALYZE_DEBUG=true && vite build


# Or using cross-env

Then you'll see all of debug info and paste in here.

@nonzzz nonzzz added the help wanted Extra attention is needed label Aug 23, 2024
@nonzzz
Copy link
Owner

nonzzz commented Aug 23, 2024

AFAIk, If you're using vite's legacy plugin. The legacy chunk isn't provide any sourcemap So that those module isn't be scan.

@nonzzz
Copy link
Owner

nonzzz commented Aug 23, 2024

I'm using vite-plugin-legacy-swc to test the legacy generate. But i got the following sourcemap

{"version":3,"file":"x-legacy-5cb72e43.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}

@faga295
Copy link

faga295 commented Sep 25, 2024

image I encountered the same problem, and here is my debug information. Are these expected?

@nonzzz
Copy link
Owner

nonzzz commented Sep 25, 2024

@faga295 Any other informations? Such as using based on the vite framework or your config workspaces plugins. AFAIK only Chunk status and Sourcemap status both as truthy can work.

@faga295
Copy link

faga295 commented Sep 26, 2024

I tried updating my Vite version and found that this plugin works only with versions 4.0.0 and above.

@nonzzz
Copy link
Owner

nonzzz commented Sep 26, 2024

@faga295 Butt i think the minimum requirement is to support vite@3. So what's your past vite version?

@faga295
Copy link

faga295 commented Sep 26, 2024

3.1.0

@nonzzz
Copy link
Owner

nonzzz commented Sep 26, 2024

I know, but i'm not sure it can resolve this problem. relative release

@nonzzz
Copy link
Owner

nonzzz commented Sep 26, 2024

@faga295 I release v0.12.0 i think it can be support. Can you have a try?

@faga295
Copy link

faga295 commented Sep 27, 2024

It works

@nonzzz
Copy link
Owner

nonzzz commented Sep 27, 2024

But now i'd like to close this issue, if there are any problems re open it again.

@nonzzz nonzzz closed this as completed Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants