@tamagui/build 1.99.1 → 1.100.0

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