-
Notifications
You must be signed in to change notification settings - Fork 27.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turbopack: ignore invalid sourcemaps for now (#76215)
#75791 made the sourcemap handling stricter, it caused this when encountering invalid input source maps (i.e. the ones that are published to npm). Let's keep the old behavior for now (which is also what Webpack does). ``` Caused by: 0: Execution of run_inner_operation failed 1: Execution of run_test_operation failed 2: Execution of ModuleGraph::from_modules failed 3: Execution of SingleModuleGraph::new_with_entries failed 4: [project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/invalid/input/index.js [test] (ecmascript) 5: Execution of primary_chunkable_referenced_modules failed 6: Execution of <EcmascriptModuleAsset as Module>::references failed 7: Execution of analyse_ecmascript_module failed 8: failed to analyse ecmascript module '[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/invalid/input/index.js [test] (ecmascript)' 9: Execution of <SourceMapReference as GenerateSourceMap>::generate_source_map failed 10: invalid type: string "use client", expected struct SourceMapJson at line 1 column 12 ```
- Loading branch information
Showing
7 changed files
with
47 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
turbopack/crates/turbopack-tests/tests/snapshot/source_maps/invalid/input/index.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
turbopack/crates/turbopack-tests/tests/snapshot/source_maps/invalid/input/index.js.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
...put/4e721_crates_turbopack-tests_tests_snapshot_source_maps_invalid_input_index_66486b.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push([ | ||
"output/4e721_crates_turbopack-tests_tests_snapshot_source_maps_invalid_input_index_66486b.js", | ||
{}, | ||
{"otherChunks":["output/4e721_crates_turbopack-tests_tests_snapshot_source_maps_invalid_input_index_fc734e.js"],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/source_maps/invalid/input/index.js [test] (ecmascript)"]} | ||
]); | ||
// Dummy runtime |
5 changes: 5 additions & 0 deletions
5
...4e721_crates_turbopack-tests_tests_snapshot_source_maps_invalid_input_index_66486b.js.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
...put/4e721_crates_turbopack-tests_tests_snapshot_source_maps_invalid_input_index_fc734e.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
...4e721_crates_turbopack-tests_tests_snapshot_source_maps_invalid_input_index_fc734e.js.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.