@tamagui/build 1.124.2 → 1.124.4

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.
@@ -2,26 +2,26 @@
2
2
  RUN v3.0.5 /Users/n8/tamagui/code/packages/build
3
3
 
4
4
  stdout | __tests__/integration.test.ts > tamagui-build integration test > should rebuild the package on file change when --watch is used
5
- Watch process output: built tamagui-build-test-watch-package in 15 ms
5
+ Watch process output: built tamagui-build-test-watch-package in 21 ms
6
6
 
7
7
  Initial build complete, modifying file...
8
8
 
9
9
  stdout | __tests__/integration.test.ts > tamagui-build integration test > should rebuild the package on file change when --watch is used
10
- Watch process output: built tamagui-build-test-watch-package in 371 ms
10
+ Watch process output: built tamagui-build-test-watch-package in 454 ms
11
11
 
12
12
  Rebuild after file modification complete
13
13
 
14
- ✓ __tests__/integration.test.ts (7 tests) 8765ms
15
- ✓ tamagui-build integration test > should build the package correctly 1195ms
16
- ✓ tamagui-build integration test > should bundle the package correctly 984ms
17
- ✓ tamagui-build integration test > should skip mjs files when --skip-mjs is used 1042ms
18
- ✓ tamagui-build integration test > should ignore base URL when --ignore-base-url is used 1062ms
19
- ✓ tamagui-build integration test > should rebuild the package on file change when --watch is used 1240ms
20
- ✓ tamagui-build integration test > should generate correct platform-specific output 1081ms
21
- ✓ tamagui-build integration test > should minify the output when MINIFY=true is set 2144ms
14
+ ✓ __tests__/integration.test.ts (7 tests) 11767ms
15
+ ✓ tamagui-build integration test > should build the package correctly 1595ms
16
+ ✓ tamagui-build integration test > should bundle the package correctly 1426ms
17
+ ✓ tamagui-build integration test > should skip mjs files when --skip-mjs is used 1436ms
18
+ ✓ tamagui-build integration test > should ignore base URL when --ignore-base-url is used 1442ms
19
+ ✓ tamagui-build integration test > should rebuild the package on file change when --watch is used 1558ms
20
+ ✓ tamagui-build integration test > should generate correct platform-specific output 1434ms
21
+ ✓ tamagui-build integration test > should minify the output when MINIFY=true is set 2853ms
22
22
 
23
23
  Test Files 1 passed (1)
24
24
  Tests 7 passed (7)
25
- Start at 11:52:31
26
- Duration 8.97s (transform 40ms, setup 0ms, collect 37ms, tests 8.76s, environment 0ms, prepare 42ms)
25
+ Start at 09:02:11
26
+ Duration 12.02s (transform 51ms, setup 0ms, collect 46ms, tests 11.77s, environment 0ms, prepare 48ms)
27
27
 
package/esbuild-es5.js CHANGED
@@ -57,6 +57,7 @@ function transformFile(file, options) {
57
57
  transform: {
58
58
  react: {
59
59
  runtime: 'automatic',
60
+ throwIfNamespace: false,
60
61
  development: false,
61
62
  },
62
63
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/build",
3
- "version": "1.124.2",
3
+ "version": "1.124.4",
4
4
  "bin": {
5
5
  "tamagui-build": "tamagui-build.js",
6
6
  "teesx": "./teesx.sh"
@@ -14,7 +14,7 @@
14
14
  "dependencies": {
15
15
  "@babel/core": "^7.25.2",
16
16
  "@swc/core": "^1.7.21",
17
- "@tamagui/babel-plugin-fully-specified": "1.124.2",
17
+ "@tamagui/babel-plugin-fully-specified": "1.124.4",
18
18
  "@types/fs-extra": "^9.0.13",
19
19
  "chokidar": "^3.5.2",
20
20
  "esbuild": "^0.24.2",
package/tamagui-build.js CHANGED
@@ -66,14 +66,12 @@ const flatOut = [pkgMain, pkgModule, pkgModuleJSX].filter(Boolean).length === 1
66
66
  const avoidCJS = pkgMain?.endsWith('.js')
67
67
 
68
68
  const replaceRNWeb = {
69
- esm: {
70
- from: 'from "react-native"',
71
- to: 'from "react-native-web"',
72
- },
73
- cjs: {
74
- from: 'require("react-native")',
75
- to: 'require("react-native-web")',
76
- },
69
+ esm: (content) =>
70
+ content
71
+ .replaceAll('from "react-native"', 'from "react-native-web"')
72
+ .replaceAll('import "react-native";', ''),
73
+ cjs: (content) =>
74
+ content.replaceAll('require("react-native")', 'require("react-native-web")'),
77
75
  }
78
76
 
79
77
  let cachedConfig = null
@@ -745,7 +743,7 @@ async function esbuildWriteIfChanged(
745
743
  if (platform === 'web') {
746
744
  const rnWebReplacer = replaceRNWeb[opts.format]
747
745
  if (rnWebReplacer) {
748
- contents = contents.replaceAll(rnWebReplacer.from, rnWebReplacer.to)
746
+ contents = rnWebReplacer(contents)
749
747
  }
750
748
  }
751
749