@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.
- package/.turbo/turbo-test.log +12 -12
- package/esbuild-es5.js +1 -0
- package/package.json +2 -2
- package/tamagui-build.js +7 -9
package/.turbo/turbo-test.log
CHANGED
|
@@ -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
|
|
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
|
|
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)
|
|
15
|
-
✓ tamagui-build integration test > should build the package correctly
|
|
16
|
-
✓ tamagui-build integration test > should bundle the package correctly
|
|
17
|
-
✓ tamagui-build integration test > should skip mjs files when --skip-mjs is used
|
|
18
|
-
✓ tamagui-build integration test > should ignore base URL when --ignore-base-url is used
|
|
19
|
-
✓ tamagui-build integration test > should rebuild the package on file change when --watch is used
|
|
20
|
-
✓ tamagui-build integration test > should generate correct platform-specific output
|
|
21
|
-
✓ tamagui-build integration test > should minify the output when MINIFY=true is set
|
|
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
|
|
26
|
-
Duration
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/build",
|
|
3
|
-
"version": "1.124.
|
|
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.
|
|
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
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
cjs:
|
|
74
|
-
|
|
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
|
|
746
|
+
contents = rnWebReplacer(contents)
|
|
749
747
|
}
|
|
750
748
|
}
|
|
751
749
|
|