@tamagui/build 1.98.4 → 1.99.1
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/package.json +2 -2
- package/tamagui-build.js +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/build",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.99.1",
|
|
4
4
|
"bin": {
|
|
5
5
|
"tamagui-build": "tamagui-build.js",
|
|
6
6
|
"teesx": "./teesx.sh"
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@babel/core": "^7.23.3",
|
|
13
|
-
"@tamagui/babel-plugin-fully-specified": "1.
|
|
13
|
+
"@tamagui/babel-plugin-fully-specified": "1.99.1",
|
|
14
14
|
"@types/fs-extra": "^9.0.13",
|
|
15
15
|
"babel-plugin-fully-specified": "*",
|
|
16
16
|
"chokidar": "^3.5.2",
|
package/tamagui-build.js
CHANGED
|
@@ -520,6 +520,8 @@ async function esbuildWriteIfChanged(
|
|
|
520
520
|
built.outputFiles.map(async (file) => {
|
|
521
521
|
let outPath = file.path
|
|
522
522
|
|
|
523
|
+
let shouldTransformWeb = true
|
|
524
|
+
|
|
523
525
|
if (outPath.endsWith('.js') || outPath.endsWith('.js.map')) {
|
|
524
526
|
const [_, extPlatform] =
|
|
525
527
|
outPath.match(/(web|native|ios|android)\.js(\.map)?$/) ?? []
|
|
@@ -544,7 +546,7 @@ async function esbuildWriteIfChanged(
|
|
|
544
546
|
extPlatform === 'android' ||
|
|
545
547
|
extPlatform === 'ios'
|
|
546
548
|
) {
|
|
547
|
-
|
|
549
|
+
shouldTransformWeb = false
|
|
548
550
|
}
|
|
549
551
|
}
|
|
550
552
|
}
|
|
@@ -554,7 +556,7 @@ async function esbuildWriteIfChanged(
|
|
|
554
556
|
await fs.ensureDir(outDir)
|
|
555
557
|
let outString = new TextDecoder().decode(file.contents)
|
|
556
558
|
|
|
557
|
-
if (platform === 'web') {
|
|
559
|
+
if (shouldTransformWeb && platform === 'web') {
|
|
558
560
|
const rnWebReplacer = replaceRNWeb[opts.format]
|
|
559
561
|
if (rnWebReplacer) {
|
|
560
562
|
outString = outString.replaceAll(rnWebReplacer.from, rnWebReplacer.to)
|