Skip to content

Conversation

@tido64
Copy link
Member

@tido64 tido64 commented Nov 5, 2025

Description

Don't block when writing metafile

Test plan

Configure metafile:

diff --git a/packages/test-app/package.json b/packages/test-app/package.json
index 794bc85ea..a21504159 100644
--- a/packages/test-app/package.json
+++ b/packages/test-app/package.json
@@ -128,7 +128,9 @@
         "id": "esbuild",
         "entryFile": "src/index.ts",
         "assetsDest": "dist",
-        "treeShake": true,
+        "treeShake": {
+          "metafile": "metafile.json"
+        },
         "plugins": [
           "@rnx-kit/metro-plugin-cyclic-dependencies-detector",
           [

Bundle:

% yarn bundle+esbuild --dev false --platform ios
info Bundling ios...
                Welcome to Metro v0.83.2
              Fast - Scalable - Integrated


info esbuild bundle size: 821468
info Writing esbuild metafile to: metafile.json
info Writing bundle output to: dist/main+esbuild.ios.jsbundle
info Writing sourcemap output to: dist/main+esbuild.ios.jsbundle.map
info Done writing esbuild metafile
info Done writing bundle output
info Done writing sourcemap output

@github-actions github-actions bot added the feature: metro This is related to Metro label Nov 5, 2025
@tido64 tido64 merged commit cbde4c1 into main Nov 5, 2025
15 checks passed
@tido64 tido64 deleted the tido/esbuild/unblock-metafile-write branch November 5, 2025 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature: metro This is related to Metro

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants