react-native-bundle-discovery-ui 2.9.1 → 2.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# react-native-bundle-discovery-ui
|
|
2
2
|
|
|
3
|
+
## 2.9.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`62c3d8e`](https://github.com/retyui/react-native-bundle-discovery/commit/62c3d8eb0534a6bd4e5d54fb99cdb4a2bb90a9d0) Thanks [@retyui](https://github.com/retyui)! - Bumped `@discoveryjs/cli` to 2.15.0 (esbuild 0.28, `@discoveryjs/json-ext` 1.1).
|
|
8
|
+
|
|
3
9
|
## 2.9.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ dependencies, inspect every module, and catch bundle size regressions in CI.
|
|
|
21
21
|
- [Quick start](https://retyui.github.io/bundle-discovery/docs/getting-started/quick-start)
|
|
22
22
|
- [UI](https://retyui.github.io/bundle-discovery/docs/guides/ui) and [CLI](https://retyui.github.io/bundle-discovery/docs/guides/cli)
|
|
23
23
|
- [Bundle size checks in CI](https://retyui.github.io/bundle-discovery/docs/guides/ci)
|
|
24
|
-
- [Re.Pack](https://retyui.github.io/bundle-discovery/docs/guides/repack), [rnx-kit](https://retyui.github.io/bundle-discovery/docs/guides/rnx-kit) and [React Native DevTools](https://retyui.github.io/bundle-discovery/docs/guides/rozenite)
|
|
24
|
+
- [Re.Pack](https://retyui.github.io/bundle-discovery/docs/guides/repack), [Rollipop](https://retyui.github.io/bundle-discovery/docs/guides/rollipop), [rnx-kit](https://retyui.github.io/bundle-discovery/docs/guides/rnx-kit) and [React Native DevTools](https://retyui.github.io/bundle-discovery/docs/guides/rozenite)
|
|
25
25
|
- [API](https://retyui.github.io/bundle-discovery/docs/api/create-serializer)
|
|
26
26
|
|
|
27
27
|
## Support the project
|
package/dist/bin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
const require_rolldown_runtime = require("./rolldown-runtime-VH7oDXx4.js");
|
|
3
|
-
const require_src = require("./src-
|
|
3
|
+
const require_src = require("./src-B0s7wyFp.js");
|
|
4
4
|
const require_discoveryrc = require("./discoveryrc.js");
|
|
5
5
|
let minimist = require("minimist");
|
|
6
6
|
minimist = require_rolldown_runtime.__toESM(minimist);
|
|
@@ -189,7 +189,7 @@ function serve(filePath, port, verbose, compareFilePath) {
|
|
|
189
189
|
process.exit(1);
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
const configFile = node_path.default.resolve(__dirname,
|
|
192
|
+
const configFile = node_path.default.resolve(__dirname, `./.tmp-${PORT}.js`);
|
|
193
193
|
if (verbose)
|
|
194
194
|
console.info(
|
|
195
195
|
`Creating temporary config file at: ${chalk.default.green(configFile)}, for discovery.js`,
|
|
@@ -343,6 +343,7 @@ const helpers = {
|
|
|
343
343
|
}
|
|
344
344
|
const options = report.transformOptions;
|
|
345
345
|
return {
|
|
346
|
+
kind: report.kind ?? null,
|
|
346
347
|
platform: options?.platform ?? null,
|
|
347
348
|
dev: typeof options?.dev === "boolean" ? options.dev : null,
|
|
348
349
|
minify: typeof options?.minify === "boolean" ? options.minify : null,
|
|
@@ -18,6 +18,9 @@ function chip(text, kind, title) {
|
|
|
18
18
|
}
|
|
19
19
|
function renderBuild(s) {
|
|
20
20
|
const chips = [
|
|
21
|
+
s.kind && s.kind !== "metro"
|
|
22
|
+
? chip(require_views__html.escapeHTML(s.kind), "platform", "Report kind")
|
|
23
|
+
: "",
|
|
21
24
|
s.platform
|
|
22
25
|
? chip(
|
|
23
26
|
require_views__html.escapeHTML(platformName(s.platform)),
|
package/dist/rsdoctor.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("./src-
|
|
2
|
+
const require_src = require("./src-B0s7wyFp.js");
|
|
3
3
|
//#region src/rsdoctor.ts
|
|
4
4
|
/** Loads a report for the generated discovery.js config and adds recommendations */
|
|
5
5
|
function loadReport({ path, rsdoctor, esbuild, compare }) {
|
|
@@ -1346,9 +1346,10 @@ const recommendation$2 = {
|
|
|
1346
1346
|
const packages = report.packages;
|
|
1347
1347
|
const modules = report.modules;
|
|
1348
1348
|
const reactNativeVersion = getReactNativeVersion(packages);
|
|
1349
|
-
const deadPromiseModules =
|
|
1350
|
-
|
|
1351
|
-
|
|
1349
|
+
const deadPromiseModules =
|
|
1350
|
+
report.kind === "metro"
|
|
1351
|
+
? modules.filter((module) => module?.path?.includes(deadCode))
|
|
1352
|
+
: [];
|
|
1352
1353
|
const hasDeadPromiseModule = deadPromiseModules.length > 0;
|
|
1353
1354
|
const removablePolyfills = [];
|
|
1354
1355
|
const removableModules = [...deadPromiseModules];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-bundle-discovery-ui",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.2",
|
|
4
4
|
"description": "Browser UI for React Native bundle reports",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"bin": "./dist/bin.js",
|
|
14
14
|
"files": [
|
|
15
15
|
"dist",
|
|
16
|
-
"!dist/.tmp
|
|
16
|
+
"!dist/.tmp*.js",
|
|
17
17
|
"assets"
|
|
18
18
|
],
|
|
19
19
|
"scripts": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"prepack": "cp ../../README.md README.md"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@discoveryjs/cli": "2.
|
|
26
|
+
"@discoveryjs/cli": "2.15.0",
|
|
27
27
|
"@discoveryjs/discovery": "1.0.0-beta.99",
|
|
28
28
|
"chalk": "^4.1.2",
|
|
29
29
|
"d3-hierarchy": "^3.1.2",
|