babel-preset-expo 54.0.4-canary-20251008-f2d1b4a → 54.0.4
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/build/index.d.ts +2 -46
- package/package.json +7 -6
package/build/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ConfigAPI, TransformOptions } from '@babel/core';
|
|
2
|
+
import type { PluginOptions as ReactCompilerOptions } from 'babel-plugin-react-compiler';
|
|
2
3
|
type BabelPresetExpoPlatformOptions = {
|
|
3
4
|
/** Disable or configure the `@babel/plugin-proposal-decorators` plugin. */
|
|
4
5
|
decorators?: false | {
|
|
@@ -24,52 +25,7 @@ type BabelPresetExpoPlatformOptions = {
|
|
|
24
25
|
enableBabelRuntime?: boolean | string;
|
|
25
26
|
unstable_transformProfile?: 'default' | 'hermes-stable' | 'hermes-canary';
|
|
26
27
|
/** Settings to pass to `babel-plugin-react-compiler`. Set as `false` to disable the plugin. */
|
|
27
|
-
'react-compiler'?: false |
|
|
28
|
-
enableUseMemoCachePolyfill?: boolean;
|
|
29
|
-
compilationMode?: 'infer' | 'strict';
|
|
30
|
-
panicThreshold?: 'none' | 'all_errors' | 'critical_errors';
|
|
31
|
-
logger?: any;
|
|
32
|
-
environment?: {
|
|
33
|
-
customHooks?: unknown;
|
|
34
|
-
enableResetCacheOnSourceFileChanges?: boolean;
|
|
35
|
-
enablePreserveExistingMemoizationGuarantees?: boolean;
|
|
36
|
-
/** @default true */
|
|
37
|
-
validatePreserveExistingMemoizationGuarantees?: boolean;
|
|
38
|
-
enableForest?: boolean;
|
|
39
|
-
enableUseTypeAnnotations?: boolean;
|
|
40
|
-
/** @default true */
|
|
41
|
-
enableReactiveScopesInHIR?: boolean;
|
|
42
|
-
/** @default true */
|
|
43
|
-
validateHooksUsage?: boolean;
|
|
44
|
-
validateRefAccessDuringRender?: boolean;
|
|
45
|
-
/** @default true */
|
|
46
|
-
validateNoSetStateInRender?: boolean;
|
|
47
|
-
validateMemoizedEffectDependencies?: boolean;
|
|
48
|
-
validateNoCapitalizedCalls?: string[] | null;
|
|
49
|
-
/** @default true */
|
|
50
|
-
enableAssumeHooksFollowRulesOfReact?: boolean;
|
|
51
|
-
/** @default true */
|
|
52
|
-
enableTransitivelyFreezeFunctionExpressions: boolean;
|
|
53
|
-
enableEmitFreeze?: unknown;
|
|
54
|
-
enableEmitHookGuards?: unknown;
|
|
55
|
-
enableEmitInstrumentForget?: unknown;
|
|
56
|
-
assertValidMutableRanges?: boolean;
|
|
57
|
-
enableChangeVariableCodegen?: boolean;
|
|
58
|
-
enableMemoizationComments?: boolean;
|
|
59
|
-
throwUnknownException__testonly?: boolean;
|
|
60
|
-
enableTreatFunctionDepsAsConditional?: boolean;
|
|
61
|
-
/** Automatically enabled when reanimated plugin is added. */
|
|
62
|
-
enableCustomTypeDefinitionForReanimated?: boolean;
|
|
63
|
-
/** @default `null` */
|
|
64
|
-
hookPattern?: string | null;
|
|
65
|
-
};
|
|
66
|
-
gating?: unknown;
|
|
67
|
-
noEmit?: boolean;
|
|
68
|
-
runtimeModule?: string | null;
|
|
69
|
-
eslintSuppressionRules?: unknown | null;
|
|
70
|
-
flowSuppressions?: boolean;
|
|
71
|
-
ignoreUseNoForget?: boolean;
|
|
72
|
-
};
|
|
28
|
+
'react-compiler'?: false | ReactCompilerOptions;
|
|
73
29
|
/** Enable `typeof window` runtime checks. The default behavior is to minify `typeof window` on web clients to `"object"` and `"undefined"` on servers. */
|
|
74
30
|
minifyTypeofWindow?: boolean;
|
|
75
31
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babel-preset-expo",
|
|
3
|
-
"version": "54.0.4
|
|
3
|
+
"version": "54.0.4",
|
|
4
4
|
"description": "The Babel preset for Expo projects",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"files": [
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@babel/runtime": "^7.20.0",
|
|
45
45
|
"react-refresh": ">=0.14.0 <1.0.0",
|
|
46
|
-
"expo": "
|
|
46
|
+
"expo": "*"
|
|
47
47
|
},
|
|
48
48
|
"peerDependenciesMeta": {
|
|
49
49
|
"@babel/runtime": {
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"@babel/plugin-transform-parameters": "^7.24.7",
|
|
70
70
|
"@babel/preset-react": "^7.22.15",
|
|
71
71
|
"@babel/preset-typescript": "^7.23.0",
|
|
72
|
-
"@react-native/babel-preset": "0.
|
|
73
|
-
"babel-plugin-react-compiler": "^
|
|
72
|
+
"@react-native/babel-preset": "0.81.4",
|
|
73
|
+
"babel-plugin-react-compiler": "^1.0.0",
|
|
74
74
|
"babel-plugin-react-native-web": "~0.21.0",
|
|
75
75
|
"babel-plugin-transform-flow-enums": "^0.0.2",
|
|
76
76
|
"babel-plugin-syntax-hermes-parser": "^0.29.1",
|
|
@@ -81,8 +81,9 @@
|
|
|
81
81
|
"@babel/core": "^7.26.0",
|
|
82
82
|
"@types/babel__core": "^7.20.5",
|
|
83
83
|
"@expo/metro": "~54.0.0",
|
|
84
|
-
"expo-module-scripts": "5.0.
|
|
84
|
+
"expo-module-scripts": "^5.0.7",
|
|
85
85
|
"jest": "^29.2.1",
|
|
86
86
|
"react-refresh": "^0.14.2"
|
|
87
|
-
}
|
|
87
|
+
},
|
|
88
|
+
"gitHead": "40027e7a62ecb3de1ec71ad497a4c51637c386e4"
|
|
88
89
|
}
|