Skip to content

Commit

Permalink
Remove unused Node.js runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Jun 18, 2024
1 parent 6803dbe commit 52f73b3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 132 deletions.
1 change: 0 additions & 1 deletion crates/turbopack-ecmascript-runtime/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check:dev-client": "tsc -p src/dev/client",
"check:dev-runtime-base": "tsc -p src/dev/runtime/base",
"check:dev-runtime-dom": "tsc -p src/dev/runtime/dom",
"check:dev-runtime-nodejs": "tsc -p src/dev/runtime/nodejs",
"check:dev-runtime-edge": "tsc -p src/dev/runtime/edge"
},
"exports": {
Expand Down

This file was deleted.

This file was deleted.

5 changes: 4 additions & 1 deletion crates/turbopack-ecmascript-runtime/src/browser_runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ pub async fn get_browser_runtime_code(
asset_context,
match chunk_loading {
ChunkLoading::Edge => "dev/runtime/edge/runtime-backend-edge.ts".into(),
ChunkLoading::NodeJs => "dev/runtime/nodejs/runtime-backend-nodejs.ts".into(),
// This case should never be hit.
ChunkLoading::NodeJs => {
panic!("Node.js runtime is not supported in the browser runtime!")
}
ChunkLoading::Dom => "dev/runtime/dom/runtime-backend-dom.ts".into(),
},
);
Expand Down

0 comments on commit 52f73b3

Please sign in to comment.