Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set __NEXT_STRICT_MODE #2878

Merged
merged 1 commit into from Dec 19, 2022
Merged

Conversation

ForsakenHarmony
Copy link
Member

@ForsakenHarmony ForsakenHarmony commented Nov 30, 2022

and __NEXT_STRICT_MODE_APP

@vercel
Copy link

vercel bot commented Nov 30, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
examples-nonmonorepo 🔄 Building (Inspect) Dec 19, 2022 at 4:37PM (UTC)
turbo-site ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Dec 19, 2022 at 4:37PM (UTC)
6 Ignored Deployments
Name Status Preview Comments Updated
examples-basic-web ⬜️ Ignored (Inspect) Dec 19, 2022 at 4:37PM (UTC)
examples-cra-web ⬜️ Ignored (Inspect) Dec 19, 2022 at 4:37PM (UTC)
examples-designsystem-docs ⬜️ Ignored (Inspect) Dec 19, 2022 at 4:37PM (UTC)
examples-kitchensink-blog ⬜️ Ignored (Inspect) Dec 19, 2022 at 4:37PM (UTC)
examples-native-web ⬜️ Ignored (Inspect) Dec 19, 2022 at 4:37PM (UTC)
examples-svelte-web ⬜️ Ignored (Inspect) Dec 19, 2022 at 4:37PM (UTC)

@github-actions
Copy link
Contributor

github-actions bot commented Nov 30, 2022

🟢 CI successful 🟢

Thanks

@github-actions
Copy link
Contributor

Benchmark for 80f9a6a

Test Base PR % Significant %
bench_hydration/Turbopack RCC/1000 modules 4119.67ms ± 42.42ms 3924.21ms ± 54.41ms -4.74% -0.05%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 8610.20µs ± 57.95µs 8649.80µs ± 120.40µs +0.46%
bench_hmr_to_commit/Turbopack RCC/1000 modules 8902.22µs ± 68.19µs 9012.68µs ± 43.86µs +1.24%
bench_hmr_to_commit/Turbopack RSC/1000 modules 792.95ms ± 21.05ms 804.81ms ± 10.06ms +1.50%
bench_hmr_to_commit/Turbopack SSR/1000 modules 8729.97µs ± 56.56µs 8682.06µs ± 39.56µs -0.55%
bench_hmr_to_eval/Turbopack CSR/1000 modules 7414.14µs ± 93.62µs 7704.71µs ± 166.81µs +3.92%
bench_hmr_to_eval/Turbopack RCC/1000 modules 7638.21µs ± 60.03µs 7706.08µs ± 103.71µs +0.89%
bench_hmr_to_eval/Turbopack SSR/1000 modules 7524.57µs ± 48.01µs 7542.34µs ± 75.99µs +0.24%
bench_hydration/Turbopack RCC/1000 modules 4119.67ms ± 42.42ms 3924.21ms ± 54.41ms -4.74% -0.05%
bench_hydration/Turbopack RSC/1000 modules 2975.21ms ± 44.79ms 2869.52ms ± 27.49ms -3.55%
bench_hydration/Turbopack SSR/1000 modules 3041.16ms ± 54.61ms 2908.35ms ± 24.79ms -4.37%
bench_startup/Turbopack CSR/1000 modules 1627.52ms ± 6.05ms 1619.74ms ± 3.95ms -0.48%
bench_startup/Turbopack RCC/1000 modules 2898.77ms ± 60.29ms 2978.57ms ± 82.90ms +2.75%
bench_startup/Turbopack RSC/1000 modules 2480.13ms ± 43.78ms 2405.07ms ± 32.14ms -3.03%
bench_startup/Turbopack SSR/1000 modules 2138.32ms ± 45.19ms 2089.56ms ± 24.17ms -2.28%

@ForsakenHarmony ForsakenHarmony force-pushed the hrmny/web-212-set-next_strict_mode branch from 6ecbbfb to e04d771 Compare December 19, 2022 15:45
@ForsakenHarmony
Copy link
Member Author

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

"__NEXT_IMAGE_OPTS".to_string() => serde_json::to_string(&image_config).unwrap(),
};

if config.react_strict_mode.unwrap_or(false) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if config.react_strict_mode.unwrap_or(false) {
if next_config.react_strict_mode.unwrap_or(false) {

map.insert("__NEXT_STRICT_MODE".to_string(), "true".to_string());
}

if config.react_strict_mode.unwrap_or(true) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if config.react_strict_mode.unwrap_or(true) {
if next_config.react_strict_mode.unwrap_or(true) {

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yea, bad rebase

seems my brain is still not fully recovered

@github-actions
Copy link
Contributor

Benchmark for 18976a6

Click to view benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 7859.52µs ± 101.61µs 8233.62µs ± 157.88µs +4.76%
bench_hmr_to_commit/Turbopack RCC/1000 modules 8861.83µs ± 81.50µs 8922.67µs ± 117.39µs +0.69%
bench_hmr_to_commit/Turbopack RSC/1000 modules 801.51ms ± 15.17ms 806.27ms ± 14.53ms +0.59%
bench_hmr_to_commit/Turbopack SSR/1000 modules 7895.58µs ± 97.24µs 7901.17µs ± 97.64µs +0.07%
bench_hmr_to_eval/Turbopack CSR/1000 modules 6704.26µs ± 40.68µs 6812.48µs ± 51.96µs +1.61%
bench_hmr_to_eval/Turbopack RCC/1000 modules 6753.77µs ± 64.82µs 6992.41µs ± 108.42µs +3.53%
bench_hmr_to_eval/Turbopack SSR/1000 modules 6877.54µs ± 60.78µs 6716.79µs ± 52.40µs -2.34%
bench_hydration/Turbopack RCC/1000 modules 3850.54ms ± 24.03ms 3832.12ms ± 34.74ms -0.48%
bench_hydration/Turbopack RSC/1000 modules 2977.88ms ± 46.03ms 2933.22ms ± 33.97ms -1.50%
bench_hydration/Turbopack SSR/1000 modules 3278.24ms ± 10.21ms 3239.98ms ± 20.16ms -1.17%
bench_startup/Turbopack CSR/1000 modules 1768.87ms ± 6.18ms 1736.41ms ± 14.47ms -1.84%
bench_startup/Turbopack RCC/1000 modules 3006.81ms ± 25.39ms 3042.37ms ± 14.56ms +1.18%
bench_startup/Turbopack RSC/1000 modules 2578.48ms ± 43.00ms 2593.45ms ± 43.69ms +0.58%
bench_startup/Turbopack SSR/1000 modules 2676.22ms ± 12.63ms 2671.71ms ± 12.91ms -0.17%

jridgewell added a commit that referenced this pull request Dec 19, 2022
Seems #2878 removed this accidentally
ForsakenHarmony pushed a commit that referenced this pull request Dec 19, 2022
jridgewell pushed a commit to vercel/next.js that referenced this pull request Mar 10, 2023
and `__NEXT_STRICT_MODE_APP`
jridgewell added a commit to vercel/next.js that referenced this pull request Mar 10, 2023
sokra pushed a commit to vercel/next.js that referenced this pull request Mar 13, 2023
and `__NEXT_STRICT_MODE_APP`
sokra pushed a commit to vercel/next.js that referenced this pull request Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants