rsnext/packages/next/shared/lib
Balázs Orbán eddabd98f8
refactor: move HtmlContext (#34482)
The shared utils file included an import from `react` (because it was using `createContext`) which seems to be unnecessary in the Middleware bundle.

With this PR and steps #34425 laid out, the bundle size did decrease without breaking functionality.

![image](https://user-images.githubusercontent.com/18369201/154508389-0a813e3e-1e07-4c45-8b71-444cc54a7f9e.png)

Fixes #34425

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`
2022-02-17 18:21:40 +00:00
..
i18n Fix basePath replacing server-side and normalizeLocalePath() when path is empty string (#30978) 2021-11-15 17:33:21 +00:00
router refactor: move HtmlContext (#34482) 2022-02-17 18:21:40 +00:00
amp-context.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
amp.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
constants.ts Generate functions manifest (#33770) 2022-01-31 15:46:04 +00:00
dynamic.tsx Fix typings of dynamic suspense (#28740) 2021-09-02 16:14:48 +00:00
escape-regexp.ts Fix issue with escape-string-regexp in IE11 (#32708) 2022-01-03 11:41:50 -06:00
head-manager-context.ts next/script fix duplicate scripts (#28428) 2021-08-24 11:07:38 -05:00
head.tsx Do not warn when application/ld+json scripts are used with next/head (#34021) 2022-02-05 14:45:02 -06:00
html-context.ts refactor: move HtmlContext (#34482) 2022-02-17 18:21:40 +00:00
image-config-context.ts fix: next/image usage from node_modules (#33559) 2022-02-08 19:55:53 -05:00
is-plain-object.ts fix: fixes #33314 move is-plain-object for es5 compilation (#33690) 2022-01-27 17:59:42 +00:00
loadable-context.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
loadable.d.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
loadable.js Add check for resolveWeak to next/dynamic (#33908) 2022-02-08 14:02:53 +00:00
mitt.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
post-process.ts Remove experimental image optimization feature (#34349) 2022-02-15 01:36:51 +00:00
router-context.ts Add new target for middleware (#30299) 2021-10-26 18:50:56 +02:00
runtime-config.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
side-effect.tsx Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
utils.ts refactor: move HtmlContext (#34482) 2022-02-17 18:21:40 +00:00