1+ ```` markdown
12---
23title: panicThreshold
34---
45
56<Intro >
67
7- The ` panicThreshold ` option controls how the React Compiler handles errors during compilation .
8+ يتحكم خيار ` panicThreshold ` في كيفية تعامل React Compiler مع الأخطاء أثناء التجميع .
89
910</Intro >
1011
1112``` js
1213{
13- panicThreshold: ' none' // Recommended
14+ panicThreshold: ' none' // موصى به
1415}
1516```
1617
1718<InlineToc />
1819
1920---
2021
21- ## Reference {/* reference* /}
22+ ## المرجع {/* reference* /}
2223
2324### ` panicThreshold ` {/* panicthreshold* /}
2425
25- Determines whether compilation errors should fail the build or skip optimization .
26+ يحدد ما إذا كان يجب أن تفشل أخطاء التجميع في البناء أو تخطي التحسين .
2627
27- #### Type {/* type* /}
28+ #### النوع {/* type* /}
2829
2930```
3031'none' | 'critical_errors' | 'all_errors'
3132```
3233
33- #### Default value {/* default-value* /}
34+ #### القيمة الافتراضية {/* default-value* /}
3435
3536` 'none' `
3637
37- #### Options {/* options* /}
38+ #### الخيارات {/* options* /}
3839
39- - ** ` 'none' ` ** (default, recommended ): Skip components that can't be compiled and continue building
40- - ** ` 'critical_errors' ` ** : Fail the build only on critical compiler errors
41- - ** ` 'all_errors' ` ** : Fail the build on any compiler diagnostic
40+ - ** ` 'none' ` ** (افتراضي، موصى به ): تخطي المكونات التي لا يمكن تجميعها ومتابعة البناء
41+ - ** ` 'critical_errors' ` ** : فشل البناء فقط عند أخطاء المُجمّع الحرجة
42+ - ** ` 'all_errors' ` ** : فشل البناء عند أي تشخيص للمُجمّع
4243
43- #### Caveats {/* caveats* /}
44+ #### تنبيهات {/* caveats* /}
4445
45- - Production builds should always use ` 'none' `
46- - Build failures prevent your application from building
47- - The compiler automatically detects and skips problematic code with ` 'none' `
48- - Higher thresholds are only useful during development for debugging
46+ - يجب أن تستخدم بيئات الإنتاج دائمًا ` 'none' `
47+ - فشل البناء يمنع تطبيقك من البناء
48+ - يكتشف المُجمّع تلقائيًا ويتخطى الكود الإشكالي مع ` 'none' `
49+ - العتبات الأعلى مفيدة فقط أثناء التطوير لتصحيح الأخطاء
4950
5051---
5152
52- ## Usage {/* usage* /}
53+ ## الاستخدام {/* usage* /}
5354
54- ### Production configuration (recommended ) {/* production-configuration* /}
55+ ### إعداد الإنتاج (موصى به ) {/* production-configuration* /}
5556
56- For production builds, always use ` 'none' ` . This is the default value :
57+ لبيئات الإنتاج، استخدم دائمًا ` 'none' ` . هذه هي القيمة الافتراضية :
5758
5859``` js
5960{
6061 panicThreshold: ' none'
6162}
6263```
6364
64- This ensures :
65- - Your build never fails due to compiler issues
66- - Components that can't be optimized run normally
67- - Maximum components get optimized
68- - Stable production deployments
65+ يضمن هذا :
66+ - لن يفشل بناؤك أبدًا بسبب مشاكل المُجمّع
67+ - المكونات التي لا يمكن تحسينها تعمل بشكل طبيعي
68+ - الحد الأقصى من المكونات يتم تحسينها
69+ - نشر إنتاج مستقر
6970
70- ### Development debugging {/* development-debugging* /}
71+ ### تصحيح أخطاء التطوير {/* development-debugging* /}
7172
72- Temporarily use stricter thresholds to find issues :
73+ استخدم مؤقتًا عتبات أكثر صرامة للعثور على المشاكل :
7374
7475``` js
7576const isDevelopment = process .env .NODE_ENV === ' development' ;
@@ -84,4 +85,5 @@ const isDevelopment = process.env.NODE_ENV === 'development';
8485 }
8586 }
8687}
87- ```
88+ ```
89+ ````
0 commit comments