@tamagui/native-bundle 2.0.0-rc.0 → 2.0.0-rc.0-1769998500160

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 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-1769998500160",
5
4
  "description": "Vite-based bundler for creating native CommonJS bundles for Tamagui packages",
6
- "main": "dist/index.js",
7
- "types": "src/index.ts",
8
- "scripts": {
9
- "build": "node build.mjs",
10
- "watch": "node build.mjs --watch"
11
- },
12
5
  "license": "MIT",
13
6
  "author": {
14
7
  "name": "Nate Wienert"
15
8
  },
16
- "dependencies": {
17
- "vite": "^7.1.12"
18
- },
19
- "devDependencies": {
20
- "esbuild": "^0.25.11"
21
- },
22
9
  "files": [
23
10
  "dist",
24
11
  "src"
25
12
  ],
13
+ "type": "module",
14
+ "main": "dist/index.js",
15
+ "types": "src/index.ts",
26
16
  "publishConfig": {
27
17
  "access": "public"
18
+ },
19
+ "scripts": {
20
+ "build": "node build.mjs",
21
+ "watch": "node build.mjs --watch"
22
+ },
23
+ "dependencies": {
24
+ "vite": "^7.1.12"
25
+ },
26
+ "devDependencies": {
27
+ "esbuild": "^0.27.2"
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