visualize-bundle
Visualize React Native bundle
Last updated 3 months ago by jonny .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install visualize-bundle 
SYNC missed versions from official npm registry.

npx visualize-bundle

npx visualize-bundle allows you to inspect your React Native bundle in just one command and to diagnose big modules.

Just like on the web, you want to make your JavaScript file as small as possible. Whenever your app opens, the phone needs to parse the whole JavaScript bundle before it can run the React Native code. On lower-end phones, a big bundle can be a bottleneck on startup performance.

This package simply downloads the bundle and the sourcemap from the running packager and uses source-map-explorer to visualize it.

Usage

No installation is needed, just type

npx visualize-bundle

into the command line. The npx command is available with npm 5.2 or later.

By default the iOS production bundle is being analyzed. The following options are available:

-a, --android         analyse Android bundle 
-d, --dev             analyse development bundle
-o, --output [dir]    output directory
-p, --port [port]     use custom port
-r, --report [string] Custom name for the report file (without ext)
-k, --keep [string]   Don't delete JS bundle and source map after execution
-j, --json            save output as JSON file instead of HTML
-v, --version         print the version number
-h, --help            print usage information

Development

Contributions are welcome - You can clone the repository and start the tool using npm start.

License

MIT


Current Tags

  • 1.3.0                                ...           latest (3 months ago)
  • 2.0.0-alpha.0                                ...           next (9 months ago)

19 Versions

  • 1.3.0                                ...           3 months ago
  • 2.0.0-alpha.0                                ...           9 months ago
  • 1.2.0                                ...           9 months ago
  • 1.1.2                                ...           10 months ago
  • 1.1.1                                ...           10 months ago
  • 1.1.0                                ...           10 months ago
  • 1.0.4                                ...           10 months ago
  • 1.0.3                                ...           10 months ago
  • 1.0.2                                ...           10 months ago
  • 1.0.1                                ...           10 months ago
  • 1.0.0                                ...           10 months ago
  • 1.0.0-alpha.0                                ...           10 months ago
  • 0.1.0-alpha.7                                ...           10 months ago
  • 0.1.0-alpha.6                                ...           10 months ago
  • 0.1.0-alpha.5                                ...           10 months ago
  • 0.1.0-alpha.4                                ...           10 months ago
  • 0.1.0-alpha.3                                ...           10 months ago
  • 0.1.0-alpha.2                                ...           10 months ago
  • 0.1.0-alpha                                ...           10 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 19
Last Day 0
Last Week 19
Last Month 2
Dependencies (10)
Dev Dependencies (7)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |