@tamagui/build 1.89.26 → 1.89.27-1708113113238

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 +2 -1
  2. package/tamagui-build.js +14 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/build",
3
- "version": "1.89.26",
3
+ "version": "1.89.27-1708113113238",
4
4
  "bin": {
5
5
  "tamagui-build": "tamagui-build.js"
6
6
  },
@@ -17,6 +17,7 @@
17
17
  "babel-plugin-fully-specified": "*",
18
18
  "chokidar": "^3.5.2",
19
19
  "esbuild": "^0.19.11",
20
+ "esbuild-plugin-es5": "^2.1.0",
20
21
  "execa": "^5.0.0",
21
22
  "fast-glob": "^3.2.11",
22
23
  "fs-extra": "^11.2.0",
package/tamagui-build.js CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  /* eslint-disable no-console */
3
3
 
4
+ const { es5Plugin } = require('esbuild-plugin-es5')
4
5
  const { transform } = require('@babel/core')
5
6
  const exec = require('execa')
6
7
  const fs = require('fs-extra')
@@ -440,6 +441,19 @@ async function esbuildWriteIfChanged(
440
441
  plugins: [
441
442
  ...(opts.plugins || []),
442
443
 
444
+ ...(platform === 'native'
445
+ ? [
446
+ // class isnt supported by hermes
447
+ es5Plugin({
448
+ swc: {
449
+ jsc: {
450
+ externalHelpers: false,
451
+ },
452
+ },
453
+ }),
454
+ ]
455
+ : []),
456
+
443
457
  // not workin
444
458
  // {
445
459
  // name: 'no-side-effects',