@tamagui/native-bundle 2.0.0-rc.0 → 2.0.0-rc.0-1769885482630
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/cli.js +0 -0
- package/package.json +14 -14
- package/src/index.ts +1 -3
package/dist/cli.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/native-bundle",
|
|
3
|
-
"version": "2.0.0-rc.0",
|
|
4
|
-
"type": "module",
|
|
3
|
+
"version": "2.0.0-rc.0-1769885482630",
|
|
5
4
|
"description": "Vite-based bundler for creating native CommonJS bundles for Tamagui packages",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Nate Wienert"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"src"
|
|
12
|
+
],
|
|
13
|
+
"type": "module",
|
|
6
14
|
"main": "dist/index.js",
|
|
7
15
|
"types": "src/index.ts",
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
18
|
+
},
|
|
8
19
|
"scripts": {
|
|
9
20
|
"build": "node build.mjs",
|
|
10
21
|
"watch": "node build.mjs --watch"
|
|
11
22
|
},
|
|
12
|
-
"license": "MIT",
|
|
13
|
-
"author": {
|
|
14
|
-
"name": "Nate Wienert"
|
|
15
|
-
},
|
|
16
23
|
"dependencies": {
|
|
17
24
|
"vite": "^7.1.12"
|
|
18
25
|
},
|
|
19
26
|
"devDependencies": {
|
|
20
27
|
"esbuild": "^0.25.11"
|
|
21
|
-
},
|
|
22
|
-
"files": [
|
|
23
|
-
"dist",
|
|
24
|
-
"src"
|
|
25
|
-
],
|
|
26
|
-
"publishConfig": {
|
|
27
|
-
"access": "public"
|
|
28
28
|
}
|
|
29
|
-
}
|
|
29
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -84,9 +84,7 @@ export async function bundleNative(options: BundleOptions): Promise<void> {
|
|
|
84
84
|
// For test bundles, bundle a fake react-native implementation
|
|
85
85
|
// For production bundles, bundle react-native-web-lite
|
|
86
86
|
// Note: react and all its subpaths (jsx-runtime, compiler-runtime, etc.) must be external
|
|
87
|
-
const external = isTest
|
|
88
|
-
? [/^react($|\/)/, /^react-native($|\/)/]
|
|
89
|
-
: [/^react($|\/)/]
|
|
87
|
+
const external = isTest ? [/^react($|\/)/, /^react-native($|\/)/] : [/^react($|\/)/]
|
|
90
88
|
const alias = isTest
|
|
91
89
|
? [
|
|
92
90
|
// Aliases don't work for pre-bundled deps, so we externalize and alias in vitest config
|