1.0.5 • Published 3 years ago

react-native-multibundle-analyzer v1.0.5

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

react-native-multibundle-analyzer

React Native bundle visulizer, out of box tools.
Also support analyzing of multiple bundles splitted with amazing metro-code-split.

Inspiration

Based on source-map-explorer to show the visulization.

How To Use

Install

npm i react-native-multibundle-analyzer | yarn add react-native-multibundle-analyzer

Usage

yarn run rn-multi-analyzer // by default, bundle the project directly and open in Browser

Configuration

All options are optional.

ArgumentDescriptionDefault Value
multiDecide how to bundle the project. Setting true indicating to use metro-code-split to split bundle, must install it first or the visualization will fail.false
entry-fileSee details Below"main" in package.json or "index.js"
platformWhich platform to bundle for, could be ios or androidios
formatVisulization output in specific formats, could be one of html | json | tsvhtml
bundleOutputLocation of the output fileOn Memory

entry-file-description

Single Bundle mode

entry-file don't exists

  • main field of package.json | "index.js".

entry-file exists

  • entry-file value

Multi Bundle Mode

entry-file exists

if entry-file is an actual js document:

Entry-file could also be a json file which content is Array, this could be appled to multi-entry circumstance.

[
    "index.js",
    "business.js"
]

entry-file don't exists

  • main field of package.json | index.js and common.js(automatically added with help of metro-code-split)