dillon1000/react

Commit

[Flight] Expand the fixture to use require.extensions (#20209)

* Expand fixture

Use .server convention. /server/index.js should really change too so it can be compiled but for now we treat it as bootstrapping code outside the compiled code.

Move App.server. It's part of the application code rather than the infra.

Add hybrid component used in both server/client and an extra component shared by multiple entry points.

* Use require.extensions to replace .client imports

The simplest server doesn't need AOT compilation. Instead we can just
configure require.extensions. This is probably not the best idea to use
in prod but is enough to show the set up.
Browse files
Changed paths8 files
First-parent comparison
D fixtures/flight/server/App.server.js DeletedR fixtures/flight/server/handler.js →fixtures/flight/server/handler.server.js RenamedM fixtures/flight/server/index.js ModifiedA fixtures/flight/src/App.server.js AddedA fixtures/flight/src/Container.js AddedM fixtures/flight/src/Counter.client.js ModifiedA fixtures/flight/src/ShowMore.client.js AddedM fixtures/flight/src/index.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…