@tamagui/build 1.72.1 → 1.72.3
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/package.json +2 -2
- package/tamagui-build.js +15 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/build",
|
|
3
|
-
"version": "1.72.
|
|
3
|
+
"version": "1.72.3",
|
|
4
4
|
"bin": {
|
|
5
5
|
"tamagui-build": "tamagui-build.js"
|
|
6
6
|
},
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@types/fs-extra": "^9.0.13",
|
|
16
16
|
"chokidar": "^3.5.2",
|
|
17
|
-
"esbuild": "
|
|
17
|
+
"esbuild": "~0.19.3",
|
|
18
18
|
"execa": "^5.0.0",
|
|
19
19
|
"fast-glob": "^3.2.11",
|
|
20
20
|
"fs-extra": "^11.1.0",
|
package/tamagui-build.js
CHANGED
|
@@ -192,26 +192,33 @@ async function buildJs() {
|
|
|
192
192
|
plugins: [
|
|
193
193
|
alias({
|
|
194
194
|
'@tamagui/web': require.resolve('@tamagui/web/native'),
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
195
|
+
|
|
196
|
+
// for test mode we want real react-native
|
|
197
|
+
...!bundleNativeTest && {
|
|
198
|
+
'react-native': require.resolve('@tamagui/fake-react-native'),
|
|
199
|
+
'react-native/Libraries/Renderer/shims/ReactFabric': require.resolve(
|
|
200
|
+
'@tamagui/fake-react-native'
|
|
201
|
+
),
|
|
202
|
+
'react-native/Libraries/Renderer/shims/ReactNative': require.resolve(
|
|
203
|
+
'@tamagui/fake-react-native'
|
|
204
|
+
),
|
|
205
|
+
},
|
|
206
|
+
|
|
202
207
|
'react-native/Libraries/Pressability/Pressability': require.resolve(
|
|
203
208
|
'@tamagui/fake-react-native'
|
|
204
209
|
),
|
|
210
|
+
|
|
205
211
|
'react-native/Libraries/Pressability/usePressability': require.resolve(
|
|
206
212
|
'@tamagui/fake-react-native/idFn'
|
|
207
213
|
),
|
|
214
|
+
|
|
208
215
|
'react-native-safe-area-context': require.resolve(
|
|
209
216
|
'@tamagui/fake-react-native'
|
|
210
217
|
),
|
|
211
218
|
'react-native-gesture-handler': require.resolve('@tamagui/proxy-worm'),
|
|
212
219
|
}),
|
|
213
220
|
],
|
|
214
|
-
external: ['react', 'react-dom'],
|
|
221
|
+
external: ['react', 'react-dom', bundleNativeTest ? 'react-native' : undefined].filter(Boolean),
|
|
215
222
|
resolveExtensions: [
|
|
216
223
|
'.native.ts',
|
|
217
224
|
'.native.tsx',
|