Skip to content

Commit

Permalink
Remove turbopack unbundled/register/loader (#30756)
Browse files Browse the repository at this point in the history
The unbundled form is just a way to show case a prototype for how an
unbundled version of RSC can work. It's not really intended for every
bundler combination to provide such a configuration.

There's no configuration of Turbopack that supports this mode atm and
possibly never will be since it's more of an integrated server/client
experience.

This removes the unbundled form and node register/loaders from the
turbopack build.
  • Loading branch information
sebmarkbage authored Aug 21, 2024
1 parent dd9117e commit 1228a28
Show file tree
Hide file tree
Showing 28 changed files with 38 additions and 1,066 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@

export * from 'react-client/src/ReactFlightClientStreamConfigNode';
export * from 'react-client/src/ReactClientConsoleConfigServer';
export * from 'react-server-dom-turbopack/src/client/ReactFlightClientConfigBundlerNode';
export * from 'react-server-dom-turbopack/src/client/ReactFlightClientConfigBundlerTurbopack';
export * from 'react-server-dom-turbopack/src/client/ReactFlightClientConfigBundlerTurbopackServer';
export * from 'react-server-dom-turbopack/src/client/ReactFlightClientConfigTargetTurbopackServer';
export * from 'react-dom-bindings/src/shared/ReactFlightClientConfigDOM';
export const usedWithSSR = true;
10 changes: 0 additions & 10 deletions packages/react-server-dom-turbopack/client.node.unbundled.js

This file was deleted.

3 changes: 0 additions & 3 deletions packages/react-server-dom-turbopack/esm/package.json

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions packages/react-server-dom-turbopack/node-register.js

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions packages/react-server-dom-turbopack/npm/esm/package.json

This file was deleted.

3 changes: 0 additions & 3 deletions packages/react-server-dom-turbopack/npm/node-register.js

This file was deleted.

18 changes: 0 additions & 18 deletions packages/react-server-dom-turbopack/npm/server.node.unbundled.js

This file was deleted.

12 changes: 0 additions & 12 deletions packages/react-server-dom-turbopack/npm/static.node.unbundled.js

This file was deleted.

30 changes: 4 additions & 26 deletions packages/react-server-dom-turbopack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,49 +16,35 @@
"client.browser.js",
"client.edge.js",
"client.node.js",
"client.node.unbundled.js",
"server.js",
"server.browser.js",
"server.edge.js",
"server.node.js",
"server.node.unbundled.js",
"static.js",
"static.browser.js",
"static.edge.js",
"static.node.js",
"static.node.unbundled.js",
"node-register.js",
"cjs/",
"esm/"
"cjs/"
],
"exports": {
".": "./index.js",
"./client": {
"workerd": "./client.edge.js",
"deno": "./client.edge.js",
"worker": "./client.edge.js",
"node": {
"turbopack": "./client.node.js",
"webpack": "./client.node.js",
"default": "./client.node.unbundled.js"
},
"node": "./client.node.js",
"edge-light": "./client.edge.js",
"browser": "./client.browser.js",
"default": "./client.browser.js"
},
"./client.browser": "./client.browser.js",
"./client.edge": "./client.edge.js",
"./client.node": "./client.node.js",
"./client.node.unbundled": "./client.node.unbundled.js",
"./server": {
"react-server": {
"workerd": "./server.edge.js",
"deno": "./server.browser.js",
"node": {
"turbopack": "./server.node.js",
"webpack": "./server.node.js",
"default": "./server.node.unbundled.js"
},
"node": "./server.node.js",
"edge-light": "./server.edge.js",
"browser": "./server.browser.js"
},
Expand All @@ -67,16 +53,11 @@
"./server.browser": "./server.browser.js",
"./server.edge": "./server.edge.js",
"./server.node": "./server.node.js",
"./server.node.unbundled": "./server.node.unbundled.js",
"./static": {
"react-server": {
"workerd": "./static.edge.js",
"deno": "./static.browser.js",
"node": {
"turbopack": "./static.node.js",
"webpack": "./static.node.js",
"default": "./static.node.unbundled.js"
},
"node": "./static.node.js",
"edge-light": "./static.edge.js",
"browser": "./static.browser.js"
},
Expand All @@ -85,9 +66,6 @@
"./static.browser": "./static.browser.js",
"./static.edge": "./static.edge.js",
"./static.node": "./static.node.js",
"./static.node.unbundled": "./static.node.unbundled.js",
"./node-loader": "./esm/react-server-dom-turbopack-node-loader.production.js",
"./node-register": "./node-register.js",
"./src/*": "./src/*.js",
"./package.json": "./package.json"
},
Expand Down
20 changes: 0 additions & 20 deletions packages/react-server-dom-turbopack/server.node.unbundled.js

This file was deleted.

Loading

0 comments on commit 1228a28

Please sign in to comment.