@tamagui/build 1.74.17 → 1.74.19
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 +19 -0
package/package.json
CHANGED
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,
|