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

What are these unmapped? #5

Open
KeithZhang opened this issue Apr 24, 2019 · 7 comments
Open

What are these unmapped? #5

KeithZhang opened this issue Apr 24, 2019 · 7 comments
Labels
question Further information is requested

Comments

@KeithZhang
Copy link

No description provided.

@ticket-tagger ticket-tagger bot added the question Further information is requested label Apr 24, 2019
@JonnyBurger
Copy link
Owner

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.

@levibuzolic
Copy link
Contributor

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.

@JonnyBurger
Copy link
Owner

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.

@roots-ai
Copy link

@JonnyBurger How did it vanish?

@JonnyBurger
Copy link
Owner

@roots-ai With @levibuzolic's PR: #7

@roots-ai
Copy link

roots-ai commented Nov 5, 2019

@JonnyBurger Thanks

@eyalyoli
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants