@tamagui/build 1.89.20 → 1.89.22

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 +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/build",
3
- "version": "1.89.20",
3
+ "version": "1.89.22",
4
4
  "bin": {
5
5
  "tamagui-build": "tamagui-build.js"
6
6
  },
package/tamagui-build.js CHANGED
@@ -16,6 +16,7 @@ const skipJS = !!(process.env.SKIP_JS || false)
16
16
  const shouldSkipTypes = !!(
17
17
  process.argv.includes('--skip-types') || process.env.SKIP_TYPES
18
18
  )
19
+ const shouldSkipMJS = !!process.argv.includes('--skip-mjs')
19
20
  const shouldBundle = !!process.argv.includes('--bundle')
20
21
  const shouldBundleNodeModules = !!process.argv.includes('--bundle-modules')
21
22
  const shouldClean = !!process.argv.includes('clean')
@@ -35,9 +36,8 @@ const tsProject =
35
36
  ? process.argv[tsProjectIndex + 1]
36
37
  : null
37
38
 
38
- const exclude = exludeIndex > -1 && process.argv[exludeIndex + 1]
39
- ? process.argv[exludeIndex + 1]
40
- : null
39
+ const exclude =
40
+ exludeIndex > -1 && process.argv[exludeIndex + 1] ? process.argv[exludeIndex + 1] : null
41
41
 
42
42
  const pkg = fs.readJSONSync('./package.json')
43
43
  let shouldSkipInitialTypes = !!process.env.SKIP_TYPES_INITIAL
@@ -561,7 +561,7 @@ async function esbuildWriteIfChanged(
561
561
  await Promise.all([
562
562
  flush(outString, outPath),
563
563
  (async () => {
564
- if (isESM && mjs && outPath.endsWith('.js')) {
564
+ if (!shouldSkipMJS && isESM && mjs && outPath.endsWith('.js')) {
565
565
  const mjsOutPath = outPath.replace('.js', '.mjs')
566
566
  // if bundling no need to specify as its all internal
567
567
  // and babel is bad on huge bundled files