next.js
5611e123 - Turbopack: really fix MAX_INLINE_LEN (#93531)

Commit
197 days ago
Turbopack: really fix MAX_INLINE_LEN (#93531) 1. https://github.com/vercel/next.js/issues/93516 was first opened. Everything worked. It introduced one more `< MAX_INLINE_LEN` comparison 2. https://github.com/vercel/next.js/issues/93524 fixed an off-by-one error (which was fine all long as all of them were consistently off by one) 3. Then https://github.com/vercel/next.js/issues/93516 merged without rebasing and on canary, the one added callsite was now inconsistent with the rest. So CI failed on canary This caused a lot of test failures: ``` ➜ next.js git:(canary) UPDATE=1 cargo nextest run -p turbopack-tests -E 'test(test_tests__execution__webpack__scope_hoisting__esModule__input__index_js)' --no-capture Finished `test` profile [unoptimized + debuginfo] target(s) in 0.55s ──────────── Nextest run ID a86cddd0-85b8-4f6c-b550-0e5870a9daf1 with nextest profile: default Starting 1 test across 3 binaries (305 tests skipped) START [ ] (1/1) turbopack-tests::execution test_tests__execution__webpack__scope_hoisting__esModule__input__index_js running 1 test Input: next.js/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/esModule/input/index.js updated contents of turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/esModule/issues/Code generation for chunk item errored-803648.txt thread 'test_tests__execution__webpack__scope_hoisting__esModule__input__index_js' (46528180) panicked at turbopack/crates/turbopack-tests/tests/execution.rs:105:9: Failed with error(s) in the following test(s): "should have the __esModule flag": Error: An error occurred while generating the chunk item [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/esModule/input/module.js [test] (ecmascript) Caused by: - Processing [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/esModule/input/module.js [test] (ecmascript) - Expected to find a local export for default with ctxt #4 in {"default": ("__TURBOPACK__default__export__", #0)} Debug info: - An error occurred while generating the chunk item [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/esModule/input/module.js [test] (ecmascript) - Execution of <MergedEcmascriptModule as EcmascriptChunkPlaceable>::chunk_item_content failed - Execution of *EcmascriptChunkItemContent::new failed - Execution of EcmascriptModuleContent::new_merged failed - Processing [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/esModule/input/module.js [test] (ecmascript) - Expected to find a local export for default with ctxt #4 in {"default": ("__TURBOPACK__default__export__", #0)} ```
Author
Parents
Loading