-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbabel.config.cjs
More file actions
38 lines (38 loc) · 1.4 KB
/
babel.config.cjs
File metadata and controls
38 lines (38 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/** @type {import('@babel/core').ConfigFunction} */
module.exports = function config(api) {
/** @type {(ever: boolean) => void} */ (/** @type {unknown} */ (api.cache))(true);
return {
presets: [["babel-preset-expo", { unstable_transformImportMeta: true }]],
plugins: [
...(process.env.EXPO_PUBLIC_ENV === "e2e" ? ["istanbul"] : []),
[
"module-resolver",
{
alias: {
"@farcaster/quick-auth/decodeJwt": "@farcaster/quick-auth/dist/decodeJwt",
"@farcaster/quick-auth/light": "@farcaster/quick-auth/dist/lightClient",
"@wagmi/core/codegen": "@wagmi/core/dist/esm/exports/codegen",
"hono/client": "hono/dist/client",
"jose/jwt/decode": "jose/dist/browser/util/decode_jwt",
"^jose$": "jose/dist/browser/index.js",
"^zustand$": "zustand/index.js",
"zustand/middleware": "zustand/middleware.js",
"zustand/vanilla": "zustand/vanilla.js",
"zustand/shallow": "zustand/shallow.js",
"zustand/traditional": "zustand/traditional.js",
},
},
],
[
"@tamagui/babel-plugin",
{
config: "tamagui.config.ts",
components: ["tamagui"],
disableExtraction: process.env.NODE_ENV !== "production",
logTimings: true,
},
],
"react-native-reanimated/plugin",
],
};
};