@@ -2,12 +2,12 @@ React Native Packager
22--------------------
33
44React Native Packager is a project similar in scope to browserify or
5- webpack, it provides a CommonJS-like module system, JavaScript
5+ webpack; it provides a CommonJS-like module system, JavaScript
66compilation (ES6, Flow, JSX), bundling, and asset loading.
77
88The main difference is the Packager's focus on compilation and
99bundling speed. We aim for a sub-second edit-reload
10- cycles . Additionally, we don't want users -- with large code bases --
10+ cycle . Additionally, we don't want users -- with large code bases --
1111to wait more than a few seconds after starting the packager.
1212
1313The main deviation from the node module system is the support for our
@@ -19,7 +19,7 @@ namely the node module format. We want to even go further, and let you
1919choose your own packager and asset pipeline or even integrate into
2020your existing infrastructure.
2121
22- React Native users need not to understand how the packager work,
22+ React Native users need not to understand how the packager works;
2323however, this documentation might be useful for advanced users and
2424people who want to fix bugs or add features to the packager (patches
2525welcome!).
@@ -45,10 +45,10 @@ Does the following in order:
4545### /path/to/moduleName.map
4646
4747* if the package has been previously generated via the ` .bundle `
48- endpoint then the source map will be generated from that package
48+ endpoint, then the source map will be generated from that package
4949* if the package has not been previously asked for, this will go
50- through the same steps outlined in the ` .bundle ` endpoint then
51- generate the source map.
50+ through the same steps outlined in the ` .bundle ` endpoint, then
51+ generate the source map
5252
5353Note that source map generation currently assumes that the code has
5454been compiled with jstransform, which preserves line and column
@@ -66,15 +66,15 @@ Here are the current options the packager accepts:
6666* ` minify ` boolean, defaults to false: whether to minify the bundle.
6767* ` runModule ` boolean, defaults to true: whether to require your entry
6868 point module. So if you requested ` moduleName ` , this option will add
69- a ` require('moduleName') ` the end of your bundle.
69+ a ` require('moduleName') ` to the end of your bundle.
7070* ` inlineSourceMap ` boolean, defaults to false: whether to inline
7171 source maps.
7272
7373### /debug
7474
75- This is a page used for debugging, it has links to two pages:
75+ This is a page used for debugging; it has links to two pages:
7676
77- * Cached Packages: which shows you the packages that's been already
77+ * Cached Packages: which shows you the packages that have already been
7878 generated and cached
7979* Dependency Graph: is the in-memory graph of all the modules and
8080 their dependencies
@@ -103,8 +103,8 @@ middleware. Takes the following options:
103103 packager
104104* ` polyfillModuleName ` array: Paths to polyfills you want to be
105105 included at the start of the bundle
106- * ` cacheVersion ` string: used in creating the cache file
107- * ` resetCache ` boolean, defaults to false: whether to use the cache on
106+ * ` cacheVersion ` string: Used in creating the cache file
107+ * ` resetCache ` boolean, defaults to false: Whether to use the cache on
108108 disk
109109* ` transformModulePath ` string: Path to the module used as a
110110 JavaScript transformer
@@ -133,6 +133,6 @@ is informed by React Native needs.
133133
134134### Why didn't you use webpack?
135135
136- We love webpack, however, when we tried on our codebase it was slower
137- than our developers would like it to be. You find can more discussion about
138- the subject [ here] ( https://github.com/facebook/react-native/issues/5 )
136+ We love webpack; however, when we tried it on our codebase, it was slower
137+ than our developers wanted it to be. You find can more discussion about
138+ the subject [ here] ( https://github.com/facebook/react-native/issues/5 ) .
0 commit comments