@tamagui/native-bundle 2.1.0 → 2.2.0-1781071309197

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.js CHANGED
@@ -41,6 +41,11 @@ async function bundleNative(options) {
41
41
  /^react($|\/)/,
42
42
  /^react-native-reanimated($|\/)/,
43
43
  /^react-native-worklets($|\/)/,
44
+ // safe-area-context is a native runtime dep provided by the app; its
45
+ // source imports TurboModuleRegistry from react-native, which the
46
+ // react-native-web-lite alias doesn't export. externalize so the bundler
47
+ // doesn't try to resolve it (same as reanimated/worklets above).
48
+ /^react-native-safe-area-context($|\/)/,
44
49
  // Reanimated's internal code requires react-native/Libraries/Renderer/shims/ReactFabric
45
50
  // which doesn't exist in the web bundle. Externalize it so the bundler doesn't try to resolve it.
46
51
  /react-native\/Libraries\//
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/native-bundle",
3
- "version": "2.1.0",
3
+ "version": "2.2.0-1781071309197",
4
4
  "description": "Vite-based bundler for creating native CommonJS bundles for Tamagui packages",
5
5
  "license": "MIT",
6
6
  "author": {
package/src/index.ts CHANGED
@@ -100,6 +100,11 @@ export async function bundleNative(options: BundleOptions): Promise<void> {
100
100
  /^react($|\/)/,
101
101
  /^react-native-reanimated($|\/)/,
102
102
  /^react-native-worklets($|\/)/,
103
+ // safe-area-context is a native runtime dep provided by the app; its
104
+ // source imports TurboModuleRegistry from react-native, which the
105
+ // react-native-web-lite alias doesn't export. externalize so the bundler
106
+ // doesn't try to resolve it (same as reanimated/worklets above).
107
+ /^react-native-safe-area-context($|\/)/,
103
108
  // Reanimated's internal code requires react-native/Libraries/Renderer/shims/ReactFabric
104
109
  // which doesn't exist in the web bundle. Externalize it so the bundler doesn't try to resolve it.
105
110
  /react-native\/Libraries\//,