Parsed and Gzipped sizes are zero
rulila52 opened this issue · 12 comments
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?
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.
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.
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 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.
I tried updating my Vite version and found that this plugin works only with versions 4.0.0 and above.
@faga295 Butt i think the minimum requirement is to support vite@3. So what's your past vite version?
3.1.0
I know, but i'm not sure it can resolve this problem. relative release
It works
But now i'd like to close this issue, if there are any problems re open it again.