npx-visualize-bundle icon indicating copy to clipboard operation
npx-visualize-bundle copied to clipboard

What are these unmapped?

Open KeithZhang opened this issue 5 years ago • 7 comments

KeithZhang avatar Apr 24 '19 02:04 KeithZhang

npx visualize-bundle downloads the bundle and sourcemap from the React Native packager. is what cannot be mapped from the sourcemap to code in the bundle. Any help on how to reduce the amount of would be appreciated! I don’t know why it happens.

JonnyBurger avatar Apr 24 '19 10:04 JonnyBurger

This is largely going to be on the React Native packager end, rather than anything to do with npx-visualize-bundle or the library it uses source-map-explorer.

These unmapped bytes can be comments and assorted bundle artefacts produced by the RN packager. A minified bundle will have a much smaller percentage of unmapped bytes due to the minification process removing a lot of these bundle artefacts.

levibuzolic avatar May 24 '19 02:05 levibuzolic

Thanks a lot to @levibuzolic!

In my case about 2/3 of the relative size of unmapped has vanished. There are still some unmapped ones, so I'm gonna leave the issue open unless the problem @KeithZhang has been solved for you.

JonnyBurger avatar May 24 '19 10:05 JonnyBurger

@JonnyBurger How did it vanish?

roots-ai avatar Oct 31 '19 02:10 roots-ai

@roots-ai With @levibuzolic's PR: https://github.com/JonnyBurger/npx-visualize-bundle/pull/7

JonnyBurger avatar Oct 31 '19 15:10 JonnyBurger

@JonnyBurger Thanks

roots-ai avatar Nov 05 '19 13:11 roots-ai

If I am still having umapped on --dev false?

eyalyoli avatar Jan 11 '21 13:01 eyalyoli