@tamagui/build 1.33.4 → 1.34.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/build",
3
- "version": "1.33.4",
3
+ "version": "1.34.0",
4
4
  "bin": {
5
5
  "tamagui-build": "tamagui-build.js"
6
6
  },
package/tamagui-build.js CHANGED
@@ -155,6 +155,9 @@ async function buildJs() {
155
155
  const externalPlugin = createExternalPlugin({
156
156
  skipNodeModulesBundle: true,
157
157
  })
158
+
159
+ const external = shouldBundle ? ['@swc/*', '*.node'] : undefined
160
+
158
161
  const start = Date.now()
159
162
  return await Promise.all([
160
163
  pkgMain
@@ -162,6 +165,7 @@ async function buildJs() {
162
165
  entryPoints: files,
163
166
  outdir: flatOut ? 'dist' : 'dist/cjs',
164
167
  bundle: shouldBundle,
168
+ external,
165
169
  sourcemap: true,
166
170
  sourcesContent: false,
167
171
  target: 'node14',
@@ -181,6 +185,7 @@ async function buildJs() {
181
185
  entryPoints: files,
182
186
  outdir: flatOut ? 'dist' : 'dist/esm',
183
187
  bundle: shouldBundle,
188
+ external,
184
189
  sourcemap: true,
185
190
  sourcesContent: false,
186
191
  target: 'node16',
@@ -200,6 +205,7 @@ async function buildJs() {
200
205
  outExtension: { '.js': '.mjs' },
201
206
  outdir: flatOut ? 'dist' : 'dist/esm',
202
207
  bundle: shouldBundle,
208
+ external,
203
209
  sourcemap: true,
204
210
  sourcesContent: false,
205
211
  target: 'node16',
@@ -221,6 +227,7 @@ async function buildJs() {
221
227
  outExtension: { '.js': '.mjs' },
222
228
  entryPoints: files,
223
229
  bundle: shouldBundle,
230
+ external,
224
231
  sourcemap: true,
225
232
  sourcesContent: false,
226
233
  allowOverwrite: true,
File without changes