@tamagui/build 1.63.0 → 1.64.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 +1 -1
- package/tamagui-build.js +12 -4
package/package.json
CHANGED
package/tamagui-build.js
CHANGED
|
@@ -165,11 +165,13 @@ async function buildJs() {
|
|
|
165
165
|
if (skipJS) {
|
|
166
166
|
return
|
|
167
167
|
}
|
|
168
|
+
|
|
168
169
|
let files = shouldBundle
|
|
169
170
|
? [pkgSource || './src/index.ts']
|
|
170
171
|
: (await fg(['src/**/*.(m)?[jt]s(x)?', 'src/**/*.css'])).filter(
|
|
171
172
|
(x) => !x.includes('.d.ts')
|
|
172
173
|
)
|
|
174
|
+
|
|
173
175
|
const externalPlugin = createExternalPlugin({
|
|
174
176
|
skipNodeModulesBundle: true,
|
|
175
177
|
})
|
|
@@ -186,7 +188,7 @@ async function buildJs() {
|
|
|
186
188
|
outdir: flatOut ? 'dist' : 'dist/cjs',
|
|
187
189
|
bundle: shouldBundle,
|
|
188
190
|
external,
|
|
189
|
-
target: '
|
|
191
|
+
target: 'node16',
|
|
190
192
|
format: 'cjs',
|
|
191
193
|
jsx: 'automatic',
|
|
192
194
|
plugins: shouldBundleNodeModules ? [] : [externalPlugin],
|
|
@@ -207,7 +209,7 @@ async function buildJs() {
|
|
|
207
209
|
outdir: flatOut ? 'dist' : 'dist/cjs',
|
|
208
210
|
bundle: shouldBundle,
|
|
209
211
|
external,
|
|
210
|
-
target: '
|
|
212
|
+
target: 'node16',
|
|
211
213
|
format: 'cjs',
|
|
212
214
|
jsx: 'automatic',
|
|
213
215
|
plugins: shouldBundleNodeModules ? [] : [externalPlugin],
|
|
@@ -228,13 +230,19 @@ async function buildJs() {
|
|
|
228
230
|
outdir: 'dist',
|
|
229
231
|
bundle: true,
|
|
230
232
|
external,
|
|
231
|
-
target: '
|
|
233
|
+
target: 'node16',
|
|
232
234
|
format: 'cjs',
|
|
233
235
|
jsx: 'automatic',
|
|
234
236
|
plugins: [
|
|
235
237
|
alias({
|
|
236
238
|
'@tamagui/web': require.resolve('@tamagui/web/native'),
|
|
237
239
|
'react-native': require.resolve('@tamagui/fake-react-native'),
|
|
240
|
+
'react-native/Libraries/Renderer/shims/ReactFabric': require.resolve(
|
|
241
|
+
'@tamagui/fake-react-native'
|
|
242
|
+
),
|
|
243
|
+
'react-native/Libraries/Renderer/shims/ReactNative': require.resolve(
|
|
244
|
+
'@tamagui/fake-react-native'
|
|
245
|
+
),
|
|
238
246
|
'react-native/Libraries/Pressability/Pressability': require.resolve(
|
|
239
247
|
'@tamagui/fake-react-native'
|
|
240
248
|
),
|
|
@@ -320,7 +328,7 @@ async function buildJs() {
|
|
|
320
328
|
entryPoints: files,
|
|
321
329
|
bundle: shouldBundle,
|
|
322
330
|
allowOverwrite: true,
|
|
323
|
-
target: '
|
|
331
|
+
target: 'node16',
|
|
324
332
|
format: 'esm',
|
|
325
333
|
minify: process.env.MINIFY ? true : false,
|
|
326
334
|
platform: 'neutral',
|