@tamagui/build 1.74.17 → 1.74.18

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 +19 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/build",
3
- "version": "1.74.17",
3
+ "version": "1.74.18",
4
4
  "bin": {
5
5
  "tamagui-build": "tamagui-build.js"
6
6
  },
package/tamagui-build.js CHANGED
@@ -389,6 +389,25 @@ async function esbuildWriteIfChanged(
389
389
  const built = await esbuild.build({
390
390
  ...opts,
391
391
 
392
+ plugins: [
393
+ ...(opts.plugins || []),
394
+
395
+ // not workin
396
+ // {
397
+ // name: 'no-side-effects',
398
+ // setup(build) {
399
+ // build.onResolve({ filter: /@tamagui.*/ }, async ({ path, ...options }) => {
400
+ // const result = await build.resolve(path, {
401
+ // ...options,
402
+ // namespace: 'noRecurse',
403
+ // })
404
+ // console.log('no side effects', path)
405
+ // return { ...result, sideEffects: false }
406
+ // })
407
+ // },
408
+ // },
409
+ ],
410
+
392
411
  treeShaking: true,
393
412
  minifySyntax: true,
394
413
  // minifyIdentifiers: true,