GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [DOM] Infer react-server entries bundles if not explicitly configured… · react/react@7f93cb4

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/react-dom/src
    • ReactDOMSharedInternals.js
  • scripts/rollup
    • packaging.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/react-dom/src/ReactDOMSharedInternals.js‎

Copy file name to clipboardExpand all lines: packages/react-dom/src/ReactDOMSharedInternals.js
-4Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,4 @@ const Internals: ReactDOMInternals = {
4747
usingClientEntryPoint: false,
4848
};
4949

50-
// if (__DEV__) {
51-
// (Internals: any).usingClientEntryPoint = false;
52-
// }
53-
5450
export default Internals;
Collapse file

‎scripts/rollup/packaging.js‎

Copy file name to clipboardExpand all lines: scripts/rollup/packaging.js
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,18 @@ function filterOutEntrypoints(name) {
213213
hasBundle =
214214
entryPointsToHasBundle.get(entry + '.node') ||
215215
entryPointsToHasBundle.get(entry + '.browser');
216+
217+
// The .react-server and .rsc suffixes may not have a bundle representation but
218+
// should infer their bundle status from the non-suffixed entry point.
219+
if (entry.endsWith('.react-server')) {
220+
hasBundle = entryPointsToHasBundle.get(
221+
entry.slice(0, '.react-server'.length * -1)
222+
);
223+
} else if (entry.endsWith('.rsc')) {
224+
hasBundle = entryPointsToHasBundle.get(
225+
entry.slice(0, '.rsc'.length * -1)
226+
);
227+
}
216228
}
217229
if (hasBundle === undefined) {
218230
// This doesn't exist in the bundles. It's an extra file.

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.