@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.
- package/package.json +1 -1
- package/tamagui-build.js +4 -4
package/package.json
CHANGED
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 =
|
|
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
|