Skip to content

Commit

Permalink
Remove unused Node.js runtime (vercel/turborepo#8398)
Browse files Browse the repository at this point in the history
### Description

These files are no longer used as the "build" folder is used. That will be renamed to nodejs in a later PR in the stack.

<!--
  ✍️ Write a short summary of your work.
  If necessary, include relevant screenshots.
-->

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->
  • Loading branch information
timneutkens authored Jun 19, 2024
1 parent 12bdafc commit 74b724c
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 74b724c

Please sign in to comment.