@tamagui/build 1.124.3 → 1.124.5

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 18 ms
5
+ Watch process output: built tamagui-build-test-watch-package in 23 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 390 ms
10
+ Watch process output: built tamagui-build-test-watch-package in 463 ms
11
11
 
12
12
  Rebuild after file modification complete
13
13
 
14
- ✓ __tests__/integration.test.ts (7 tests) 9903ms
15
- ✓ tamagui-build integration test > should build the package correctly 1374ms
16
- ✓ tamagui-build integration test > should bundle the package correctly 1088ms
17
- ✓ tamagui-build integration test > should skip mjs files when --skip-mjs is used 1209ms
18
- ✓ tamagui-build integration test > should ignore base URL when --ignore-base-url is used 1212ms
19
- ✓ tamagui-build integration test > should rebuild the package on file change when --watch is used 1299ms
20
- ✓ tamagui-build integration test > should generate correct platform-specific output 1190ms
21
- ✓ tamagui-build integration test > should minify the output when MINIFY=true is set 2504ms
14
+ ✓ __tests__/integration.test.ts (7 tests) 12063ms
15
+ ✓ tamagui-build integration test > should build the package correctly 1597ms
16
+ ✓ tamagui-build integration test > should bundle the package correctly 1396ms
17
+ ✓ tamagui-build integration test > should skip mjs files when --skip-mjs is used 1473ms
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 1750ms
20
+ ✓ tamagui-build integration test > should generate correct platform-specific output 1464ms
21
+ ✓ tamagui-build integration test > should minify the output when MINIFY=true is set 2921ms
22
22
 
23
23
  Test Files 1 passed (1)
24
24
  Tests 7 passed (7)
25
- Start at 15:45:56
26
- Duration 10.31s (transform 83ms, setup 0ms, collect 73ms, tests 9.90s, environment 0ms, prepare 154ms)
25
+ Start at 10:16:45
26
+ Duration 12.34s (transform 62ms, setup 0ms, collect 48ms, tests 12.06s, environment 0ms, prepare 76ms)
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.3",
3
+ "version": "1.124.5",
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.3",
17
+ "@tamagui/babel-plugin-fully-specified": "1.124.5",
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