@teardown/metro-config 2.0.65 → 2.0.67
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/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -2
- package/package.json +2 -2
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,gBAAgB,EAAiB,MAAM,yBAAyB,CAAC;AAG1E,OAAO,KAAK,EAAE,WAAW,EAAoB,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAUnF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,GAAE,oBAAyB,GAAG,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,gBAAgB,EAAiB,MAAM,yBAAyB,CAAC;AAG1E,OAAO,KAAK,EAAE,WAAW,EAAoB,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAUnF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,GAAE,oBAAyB,GAAG,WAAW,CAmGjG;AAGD,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAG5B,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAExD,OAAO,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEnF,OAAO,EACN,kBAAkB,EAClB,eAAe,EACf,sBAAsB,EACtB,eAAe,EACf,gBAAgB,EAChB,YAAY,GACZ,MAAM,aAAa,CAAC;AAGrB,YAAY,EAAE,oBAAoB,EAAE,WAAW,EAAE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -88,9 +88,18 @@ function withTeardown(config, options = {}) {
|
|
|
88
88
|
// The bun-aware resolver handles .bun path filtering
|
|
89
89
|
const bunAwareResolver = (0, bun_1.createBunAwareResolver)(projectRoot, existingResolver);
|
|
90
90
|
// Apply tsconfig paths resolver on top (so it runs first)
|
|
91
|
-
const
|
|
91
|
+
const chainedResolver = tsconfigPaths
|
|
92
92
|
? (0, tsconfig_paths_1.createTsConfigPathsResolver)(projectRoot, bunAwareResolver, verbose)
|
|
93
93
|
: bunAwareResolver;
|
|
94
|
+
// Wrap with null-safe handling so external plugins (like Uniwind) don't receive null
|
|
95
|
+
// When our resolver chain returns null, use Metro's internal resolver as fallback
|
|
96
|
+
const nullSafeResolver = (context, moduleName, platform) => {
|
|
97
|
+
const result = chainedResolver(context, moduleName, platform);
|
|
98
|
+
if (result === null) {
|
|
99
|
+
return context.resolveRequest(context, moduleName, platform);
|
|
100
|
+
}
|
|
101
|
+
return result;
|
|
102
|
+
};
|
|
94
103
|
// Build enhanced config
|
|
95
104
|
const enhancedConfig = {
|
|
96
105
|
...config,
|
|
@@ -100,7 +109,7 @@ function withTeardown(config, options = {}) {
|
|
|
100
109
|
...config.resolver,
|
|
101
110
|
blockList,
|
|
102
111
|
nodeModulesPaths: [...new Set([...modulesPaths, ...existingNodeModulesPaths])],
|
|
103
|
-
resolveRequest:
|
|
112
|
+
resolveRequest: nullSafeResolver,
|
|
104
113
|
},
|
|
105
114
|
};
|
|
106
115
|
// Set unstable_serverRoot for monorepo web support
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teardown/metro-config",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.67",
|
|
4
4
|
"description": "Metro configuration for Teardown - Rust-powered transforms via Facetpack",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"resolve-workspace-root": "^2.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@teardown/tsconfig": "2.0.
|
|
48
|
+
"@teardown/tsconfig": "2.0.67",
|
|
49
49
|
"@types/bun": "1.3.5",
|
|
50
50
|
"typescript": "5.9.3"
|
|
51
51
|
},
|