@tamagui/build 1.93.3 → 1.94.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tamagui-build.js +5 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/build",
3
- "version": "1.93.3",
3
+ "version": "1.94.1",
4
4
  "bin": {
5
5
  "tamagui-build": "tamagui-build.js",
6
6
  "teesx": "./teesx.sh"
package/tamagui-build.js CHANGED
@@ -597,7 +597,8 @@ async function esbuildWriteIfChanged(
597
597
  await Promise.all([
598
598
  flush(outString, outPath),
599
599
  (async () => {
600
- if (!shouldSkipMJS && isESM && mjs && outPath.endsWith('.js')) {
600
+ const shouldDoMJS = !shouldSkipMJS && isESM && mjs && outPath.endsWith('.js')
601
+ if (shouldDoMJS) {
601
602
  const mjsOutPath = outPath.replace('.js', '.mjs')
602
603
  // if bundling no need to specify as its all internal
603
604
  // and babel is bad on huge bundled files
@@ -610,7 +611,8 @@ async function esbuildWriteIfChanged(
610
611
  [
611
612
  require.resolve('babel-plugin-fully-specified'),
612
613
  {
613
- ensureFileExists: true,
614
+ // this doesnt work because the files dont exist as you build in random orders
615
+ // ensureFileExists: true,
614
616
  esExtensionDefault: '.mjs',
615
617
  tryExtensions: ['.mjs', '.js'],
616
618
  esExtensions: ['.mjs', '.js'],
@@ -621,6 +623,7 @@ async function esbuildWriteIfChanged(
621
623
  // : require.resolve('./babel-plugin-process-env-to-meta'),
622
624
  ].filter(Boolean),
623
625
  }).code
626
+
624
627
  // output to mjs fully specified
625
628
  await flush(output, mjsOutPath)
626
629
  }