-
Notifications
You must be signed in to change notification settings - Fork 26.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove ineffective webpack rules and unused app-page context modules (#…
…65321) ### What * Remove the `private-next-app-dir` condition for `WEBPACK_LAYERS.appRouteHandler` layer since it's not effective as the `rule.test` will match the actual file path. App routes are actually bundled in rsc layer atm as expected. * Should only let shared-runtime modules working in either ssr layer or non-layer (unbundling pages router). * Remove the pages router context modules for app-page runtime. Still need to keep amp-context as it's used in `head.js` and `head.js` used in `next/image`. Not easy to remove unless we have separate implementation of `next/image` for pages and app router Closes NEXT-3312
- Loading branch information
Showing
7 changed files
with
11 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
packages/next/src/server/future/route-modules/app-page/vendored/contexts/html-context.ts
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
packages/next/src/server/future/route-modules/app-page/vendored/contexts/loadable-context.ts
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
packages/next/src/server/future/route-modules/app-page/vendored/contexts/loadable.ts
This file was deleted.
Oops, something went wrong.