Skip to content

Commit 9e83b43

Browse files
authored
Make noBorderChecks true by default (#130)
issue: #127
1 parent 7aa289f commit 9e83b43

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,18 @@ npm install --save-dev react-native-bundle-visualizer ./node_modules/.bin/react-
3838

3939
All command-line arguments are optional. By default a production build will be created for the `ios` platform.
4040

41-
| Option | Description | Example |
42-
| -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- |
43-
| `platform` | Platform to build (default is **ios**) | `--platform ios` |
44-
| `dev` | Dev or production build (default is **false**) | `--dev false` |
45-
| `entry-file` | Entry-file (when omitted tries to auto-resolve it) | `--entry-file ./index.ios.js` |
46-
| `bundle-output` | Output bundle-file (default is **tmp**) | `--bundle-output ./myapp.bundle` |
47-
| `format` | Output format **html**, **json** or **tsv** (default is **html**) (see [source-map-explorer options][smeo]) | `--format json` |
48-
| `only-mapped` | Exclude "unmapped" bytes from the output (default is **false**). This will result in total counts less than the file size. | `--only-mapped` |
49-
| `verbose` | Dumps additional output to the console (default is **false**) | `--verbose` |
50-
| `reset-cache` | Removes cached react-native files (default is **false**) | `--reset-cache` |
51-
| `--expo` | Set this to true/ false based on whether using expo or not. For eg, set `--expo true` when using expo. Not required to pass this for react-native cli. (default is **false**) | `--expo false` |
52-
| `--no-border-checks` | Pass the same flag to the underlying `source-map-explorer` to disable invalid mapping column/line checks. | `--no-border-checks` |
41+
| Option | Description | Example |
42+
| ----------------- |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------|
43+
| `platform` | Platform to build (default is **ios**) | `--platform ios` |
44+
| `dev` | Dev or production build (default is **false**) | `--dev false` |
45+
| `entry-file` | Entry-file (when omitted tries to auto-resolve it) | `--entry-file ./index.ios.js` |
46+
| `bundle-output` | Output bundle-file (default is **tmp**) | `--bundle-output ./myapp.bundle` |
47+
| `format` | Output format **html**, **json** or **tsv** (default is **html**) (see [source-map-explorer options][smeo]) | `--format json` |
48+
| `only-mapped` | Exclude "unmapped" bytes from the output (default is **false**). This will result in total counts less than the file size. | `--only-mapped` |
49+
| `verbose` | Dumps additional output to the console (default is **false**) | `--verbose` |
50+
| `reset-cache` | Removes cached react-native files (default is **false**) | `--reset-cache` |
51+
| `--expo` | Set this to true/ false based on whether using expo or not. For eg, set `--expo true` when using expo. Not required to pass this for react-native cli. (default is `false`) | `--expo false` |
52+
| `--border-checks` | Pass the same flag to the underlying `source-map-explorer` to enable invalid mapping column/line checks. (default is **false**, no check) | `--no-border-checks` or `--border-checks` |
5353

5454
[smeo]: https://github.com/danvk/source-map-explorer#options
5555

src/react-native-bundle-visualizer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const bundleOutputSourceMap = bundleOutput + '.map';
6969
const format = argv.format || 'html';
7070
const bundleOutputExplorerFile = path.join(outDir, 'explorer.' + format);
7171
const onlyMapped = !!argv['only-mapped'] || false;
72-
const borderChecks = argv['border-checks'] || false;
72+
const borderChecks = argv['border-checks'] === true;
7373

7474
// Make sure the temp dir exists
7575
fs.ensureDirSync(baseDir);

0 commit comments

Comments
 (0)