Open PatNeedham opened 5 years ago
I meant webpack code splitting. This plugin was not created with rollup code splitting in mind.
I think you need something simpler to track your chunks size. They can be already minified and your will need to apply only gzip. This way you will not spend time and memory for useless minification.
I'm getting an error like this:
The beginning of
renderChunk
insidesizeSnapshot
function for this plugin looks like:I believe it should be checking if top-level
experimentalCodeSplitting
property of the rollup config is set to true, in which caseoutput.dir
exists instead ofoutput.file
. So that error checking could possibly be changed toHowever, I see that
output
variable is used later on in the code, so I tried changing it tojust to see what happens, and ended up getting a different error after running
npx rollup -c
:@TrySound not sure if this issue is related to one you posted on July 26, Test treeshaking with code splitting. Linking that one just in case